Interface GetChatMessagePosition

Returns the approximate 1-based position of a message among messages that can be found by the specified filter in the chat and topic. Cannot be used in secret chats. Request type for Tdjson#getChatMessagePosition.

interface GetChatMessagePosition {
    @type: "getChatMessagePosition";
    chat_id: number;
    filter: SearchMessagesFilter;
    message_id: number;
    topic_id: MessageTopic;
}

Properties

@type: "getChatMessagePosition"
chat_id: number

Identifier of the chat in which to find the message position.

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

message_id: number

Message identifier.

topic_id: MessageTopic

Pass a topic identifier to get the position among messages only in a specific topic; pass null to get the position among all chat messages; message threads aren't supported.