public static class TdApi.GetChatMessagePosition extends TdApi.Function<TdApi.Count>
Returns Count
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Identifier of the chat in which to find message position.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.SearchMessagesFilter |
filter
Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function.
|
long |
messageId
Message identifier.
|
long |
messageThreadId
If not 0, only messages in the specified thread will be considered; supergroups only.
|
long |
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.
|
| Constructor and Description |
|---|
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.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long messageId
public TdApi.SearchMessagesFilter filter
public long messageThreadId
public long savedMessagesTopicId
public static final int CONSTRUCTOR
public GetChatMessagePosition()
Returns Count
public GetChatMessagePosition(long chatId,
long messageId,
TdApi.SearchMessagesFilter filter,
long messageThreadId,
long savedMessagesTopicId)
Returns Count
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object