Package org.drinkless.tdlib
Class TdApi.GetChatMessagePosition
- Enclosing class:
- TdApi
Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic. Cannot be used in secret chats.
Returns Count
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the chat in which to find message position.static final intIdentifier uniquely determining type of the object.Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function.longMessage identifier.Pass topic identifier to get position among messages only in specific topic; pass null to get position among all chat messages. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic.GetChatMessagePosition(long chatId, TdApi.MessageTopic topicId, TdApi.SearchMessagesFilter filter, long messageId) Creates a function, which returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat in which to find message position. -
topicId
Pass topic identifier to get position among messages only in specific topic; pass null to get position among all chat messages. -
filter
Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function. -
messageId
public long messageIdMessage identifier. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetChatMessagePosition
public GetChatMessagePosition()Default constructor for a function, which returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic. Cannot be used in secret chats.Returns
Count -
GetChatMessagePosition
public GetChatMessagePosition(long chatId, TdApi.MessageTopic topicId, TdApi.SearchMessagesFilter filter, long messageId) Creates a function, which returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic. Cannot be used in secret chats.Returns
Count- Parameters:
chatId- Identifier of the chat in which to find message position.topicId- Pass topic identifier to get position among messages only in specific topic; pass null to get position among all chat messages.filter- Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function.messageId- Message identifier.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-