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
| 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 |