View Source ExTDLib.Method.GetChatMessagePosition (ExTDLib v0.0.4)

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 object_ptr<Count>.

NameTypeDescription
chat_idstringIdentifier of the chat in which to find message position.
message_idstringMessage identifier.
filterSearchMessagesFilterFilter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function.
message_thread_idstringIf not 0, only messages in the specified thread will be considered; supergroups only.

More details on telegram's documentation.