TDLib v0.0.1 TDLib.Object.Chat View Source
A chat. (Can be a private chat, basic group, supergroup, or secret chat.)
Name | Type | Description |
---|---|---|
id | string | Chat unique identifier. |
type | ChatType | Type of the chat. |
title | string | Chat title. |
photo | chatPhoto | Chat photo; may be null. |
last_message | message | Last message in the chat; may be null. |
order | string | Descending 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_pinned | bool | True, if the chat is pinned. |
unread_count | number | Number of unread messages in the chat. |
last_read_inbox_message_id | string | Identifier of the last read incoming message. |
last_read_outbox_message_id | string | Identifier of the last read outgoing message. |
unread_mention_count | number | Number of unread messages with a mention/reply in the chat. |
notification_settings | notificationSettings | Notification settings for this chat. |
reply_markup_message_id | string | Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat. |
draft_message | draftMessage | A draft of a message in the chat; may be null. parse_mode in input_message_text will always be null. |
client_data | string | Contains 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.