Interface GetChatMessagePosition

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. 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 message position.

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

message_id: number

Message identifier.

topic_id: MessageTopic

Pass topic identifier to get position among messages only in specific topic; pass null to get position among all chat messages.