Skip to content

DirectMessagesChatTopic

Type · TDLib 1.8.67 · d1085f9c

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

DirectMessagesChatTopic(
  chat_id: int53,
  id: int53,
  sender_id: MessageSender,
  order: int64,
  can_send_unpaid_messages: Bool,
  is_marked_as_unread: Bool,
  unread_count: int53,
  last_read_inbox_message_id: int53,
  last_read_outbox_message_id: int53,
  unread_reaction_count: int53,
  last_message: Message,
  draft_message: DraftMessage
) → DirectMessagesChatTopic

chat_id

int53

Identifier of the chat to which the topic belongs

id

int53

Unique topic identifier

sender_id

MessageSender

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

order

int64

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

can_send_unpaid_messages

Bool

True, if the other party can send unpaid messages even if the chat has paid messages enabled

is_marked_as_unread

Bool

True, if the topic is marked as unread

unread_count

int53

Number of unread messages in the chat

last_read_inbox_message_id

int53

Identifier of the last read incoming message

last_read_outbox_message_id

int53

Identifier of the last read outgoing message

unread_reaction_count

int53

Number of messages with unread reactions in the chat

last_message

Message

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

draft_message

DraftMessage

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