TDLib v0.0.1 TDLib.Object.Chat View Source

A chat. (Can be a private chat, basic group, supergroup, or secret chat.)

NameTypeDescription
idstringChat unique identifier.
typeChatTypeType of the chat.
titlestringChat title.
photochatPhotoChat photo; may be null.
last_messagemessageLast message in the chat; may be null.
orderstringDescending parameter by which chats are sorted in the main chat list. If the order number of two chats is the same, they must be sorted in descending order by ID. If 0, the position of the chat in the list is undetermined.
is_pinnedboolTrue, if the chat is pinned.
unread_countnumberNumber of unread messages in the chat.
last_read_inbox_message_idstringIdentifier of the last read incoming message.
last_read_outbox_message_idstringIdentifier of the last read outgoing message.
unread_mention_countnumberNumber of unread messages with a mention/reply in the chat.
notification_settingsnotificationSettingsNotification settings for this chat.
reply_markup_message_idstringIdentifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat.
draft_messagedraftMessageA draft of a message in the chat; may be null. parse_mode in input_message_text will always be null.
client_datastringContains client-specific data associated with the chat. (For example, the chat position or local chat notification settings can be stored here.) Persistent if a message database is used.

More details on telegram’s documentation.