pub async fn get_chat_message_position(
chat_id: i64,
message_id: i64,
filter: SearchMessagesFilter,
message_thread_id: i64,
saved_messages_topic_id: i64,
client_id: i32,
) -> Result<Count, Error>
Expand description
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
ยงArguments
chat_id
- Identifier of the chat in which to find message positionmessage_id
- Message identifierfilter
- Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this functionmessage_thread_id
- If not 0, only messages in the specified thread will be considered; supergroups onlysaved_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 Messagesclient_id
- The client id to send the request to