Interface DirectMessagesChatTopic

Contains information about a topic in a channel direct messages chat administered by the current user.

interface DirectMessagesChatTopic {
    @type: "directMessagesChatTopic";
    chat_id: number;
    draft_message: DraftMessage;
    id: number;
    is_marked_as_unread?: boolean;
    last_message: Message;
    last_read_inbox_message_id: number;
    last_read_outbox_message_id: number;
    order: string;
    sender_id: MessageSender;
    unread_count: number;
    unread_reaction_count: number;
}

Properties

@type: "directMessagesChatTopic"
chat_id: number

Identifier of the chat to which the topic belongs.

draft_message: DraftMessage

A draft of a message in the topic; may be null if none.

id: number

Unique topic identifier.

is_marked_as_unread?: boolean

True, if the forum topic is marked as unread.

last_message: Message

Last message in the topic; may be null if none or unknown.

last_read_inbox_message_id: number

Identifier of the last read incoming message.

last_read_outbox_message_id: number

Identifier of the last read outgoing message.

order: string

A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order.

sender_id: MessageSender

Identifier of the user or chat that sends the messages to the topic.

unread_count: number

Number of unread messages in the chat.

unread_reaction_count: number

Number of messages with unread reactions in the chat.