Chat
A chat. (Can be a private chat, basic group, supergroup, or secret chat).
This is an alias for the ChatUnion
type.
chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
_ | "chat" | |
id | number | Chat unique identifier |
type | Type of the chat | |
title | string | Chat title |
photo | Chat photo; may be null | |
permissions | Actions that non-administrator chat members are allowed to take in the chat | |
lastMessage | Last message in the chat; may be null | |
positions | Positions of the chat in chat lists | |
messageSenderId | 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 | |
hasProtectedContent | boolean | True, if chat content can't be saved locally, forwarded, or copied |
isMarkedAsUnread | boolean | True, if the chat is marked as unread |
isBlocked | boolean | True, if the chat is blocked by the current user and private messages from the chat can't be received |
hasScheduledMessages | boolean | True, if the chat has scheduled messages |
canBeDeletedOnlyForSelf | boolean | True, if the chat messages can be deleted only for the current user while other users will continue to see the messages |
canBeDeletedForAllUsers | boolean | True, if the chat messages can be deleted for all users |
canBeReported | boolean | True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto |
defaultDisableNotification | boolean | Default value of the disable_notification parameter, used when a message is sent to the chat |
unreadCount | number | Number of unread messages in the chat |
lastReadInboxMessageId | number | Identifier of the last read incoming message |
lastReadOutboxMessageId | number | Identifier of the last read outgoing message |
unreadMentionCount | number | Number of unread messages with a mention/reply in the chat |
notificationSettings | Notification settings for this chat | |
messageTtl | number | Current message Time To Live setting (self-destruct timer) for the chat; 0 if not defined. TTL is counted from the time message or its content is viewed in secret chats and from the send date in other chats |
themeName | string | If non-empty, name of a theme, set for the chat |
actionBar | Information about actions which must be possible to do through the chat action bar; may be null | |
videoChat | Information about video chat of the chat | |
pendingJoinRequests | Information about pending join requests; may be null | |
replyMarkupMessageId | number | Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat |
draftMessage | A draft of a message in the chat; may be null | |
clientData | 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 |