Chat
This object represents a chat.
Поля
idInteger
Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
typeString
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
Title, for supergroups, channels and group chats
Username, for private chats, supergroups and channels if available
First name of the other party in a private chat
Last name of the other party in a private chat
True, if the chat is the direct messages chat of a channel
Минимальный JSON
JSON
{
"id": 1780243423,
"type": "private"
}Где используется
Типы
AffiliateInfoBusinessMessagesDeletedChatBoostRemovedChatBoostUpdatedChatFullInfoChatJoinRequestChatMemberUpdatedChecklistTaskExternalReplyInfoGiftGiveawayGiveawayWinnersInaccessibleMessageMessageMessageGenerationStoppedMessageOriginChannelMessageOriginChatMessageReactionCountUpdatedMessageReactionUpdatedPollAnswerPollOptionStoryTransactionPartnerChatUniqueGift