get_chat_message_position


Description:

public async Count get_chat_message_position (int64 chat_id, int64 message_id, SearchMessagesFilter filter, int64 message_thread_id, int64 saved_messages_topic_id) throws TDLibError

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

Parameters:

chat_id

Identifier of the chat in which to find message position

message_id

Message identifier

filter

Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function

message_thread_id

If not 0, only messages in the specified thread will be considered; supergroups only

saved_messages_topic_id

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