A chat. (Can be a private chat, basic group, supergroup, or secret chat).
id Chat unique identifier.
type Type of the chat.
title 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.
order 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.
isPinned True, if the chat is pinned.
isMarkedAsUnread True, if the chat is marked as unread.
isSponsored True, if the chat is sponsored by the user's MTProxy server.
canBeDeletedOnlyForSelf True, if the chat messages can be deleted only for the current user while other users will continue to see the messages.
canBeDeletedForAllUsers True, if the chat messages can be deleted for all users.
canBeReported True, if the chat can be reported to Telegram moderators through reportChat.
defaultDisableNotification Default value of the disable_notification parameter, used when a message is sent to the chat.
unreadCount Number of unread messages in the chat.
lastReadInboxMessageId Identifier of the last read incoming message.
lastReadOutboxMessageId Identifier of the last read outgoing message.
unreadMentionCount Number of unread messages with a mention.
notificationSettings Notification settings for this chat.
pinnedMessageId Identifier of the pinned message in the chat; 0 if none.
replyMarkupMessageId 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 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