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. Cannot be used in secret chats.
Returns Count
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
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.longIf not 0, only messages in the specified thread will be considered; supergroups only.longIf not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all relevant messages, or for chats other than Saved 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.GetChatMessagePosition(long chatId, long messageId, TdApi.SearchMessagesFilter filter, long messageThreadId, long savedMessagesTopicId) 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. -
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. -
messageId
public long messageIdMessage identifier. -
filter
Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function. -
messageThreadId
public long messageThreadIdIf not 0, only messages in the specified thread will be considered; supergroups only. -
savedMessagesTopicId
public long savedMessagesTopicIdIf not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all relevant messages, or for chats other than Saved Messages. -
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. Cannot be used in secret chats.Returns
Count -
GetChatMessagePosition
public GetChatMessagePosition(long chatId, long messageId, TdApi.SearchMessagesFilter filter, long messageThreadId, long savedMessagesTopicId) 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. Cannot be used in secret chats.Returns
Count- Parameters:
chatId- Identifier of the chat in which to find message position.messageId- Message identifier.filter- Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function.messageThreadId- If not 0, only messages in the specified thread will be considered; supergroups only.savedMessagesTopicId- If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all relevant messages, or for chats other than Saved Messages.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.Count>- Returns:
- this.CONSTRUCTOR
-