Interface GetDirectMessagesChatTopicHistory

Returns messages in the topic in a channel direct messages chat administered by the current user. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). Request type for Tdjson#getDirectMessagesChatTopicHistory.

interface GetDirectMessagesChatTopicHistory {
    @type: "getDirectMessagesChatTopicHistory";
    chat_id: number;
    from_message_id: number;
    limit: number;
    offset: number;
    topic_id: number;
}

Properties

@type: "getDirectMessagesChatTopicHistory"
chat_id: number

Chat identifier of the channel direct messages chat.

from_message_id: number

Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message.

limit: number

The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit.

offset: number

Specify 0 to get results from exactly the message from_message_id or a negative offset up to 99 to get additionally some newer messages.

topic_id: number

Identifier of the topic which messages will be fetched.