get_chat_message_position


Description:

public async Count get_chat_message_position (int64 chat_id, MessageTopic topic_id, SearchMessagesFilter filter, int64 message_id) throws TDLibError

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

Parameters:

chat_id

Identifier of the chat in which to find message position

topic_id

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

message_id

Message identifier