View Source ExTDLib.Object.Chat (ExTDLib v0.0.4)
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 | chatPhotoInfo | Chat photo; may be null. |
| accent_color_id | number | Identifier of the accent color for message sender name, and backgrounds of chat photo, reply header, and link preview. |
| background_custom_emoji_id | string | Identifier of a custom emoji to be shown on the reply header background in replies to messages sent by the chat; 0 if none. |
| permissions | chatPermissions | Actions that non-administrator chat members are allowed to take in the chat. |
| last_message | message | Last message in the chat; may be null if none or unknown. |
| positions | chatPosition | Positions of the chat in chat lists. |
| message_sender_id | MessageSender | Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can't change message sender. |
| block_list | BlockList | Block list to which the chat is added; may be null if none. |
| has_protected_content | bool | True, if chat content can't be saved locally, forwarded, or copied. |
| is_translatable | bool | True, if translation of all messages in the chat must be suggested to the user. |
| is_marked_as_unread | bool | True, if the chat is marked as unread. |
| view_as_topics | bool | True, if the chat is a forum supergroup that must be shown in the "View as topics" mode. |
| has_scheduled_messages | bool | True, if the chat has scheduled messages. |
| can_be_deleted_only_for_self | bool | True, if the chat messages can be deleted only for the current user while other users will continue to see the messages. |
| can_be_deleted_for_all_users | bool | True, if the chat messages can be deleted for all users. |
| can_be_reported | bool | True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto. |
| default_disable_notification | bool | Default value of the disable_notification parameter, used when a message is sent to the chat. |
| 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. |
| unread_reaction_count | number | Number of messages with unread reactions in the chat. |
| notification_settings | chatNotificationSettings | Notification settings for the chat. |
| available_reactions | ChatAvailableReactions | Types of reaction, available in the chat. |
| message_auto_delete_time | number | Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date. |
| background | chatBackground | Background set for the chat; may be null if none. |
| theme_name | string | If non-empty, name of a theme, set for the chat. |
| action_bar | ChatActionBar | Information about actions which must be possible to do through the chat action bar; may be null if none. |
| video_chat | videoChat | Information about video chat of the chat. |
| pending_join_requests | chatJoinRequestsInfo | Information about pending join requests; may be null if none. |
| 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 if none. |
| client_data | string | Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used. |
More details on telegram's documentation.