ChatFullInfo
This object contains full information about 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
accent_color_idInteger
Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details.
max_reaction_countInteger
The maximum number of reactions that can be set on a message in the chat
If non-empty, the list of all active chat usernames; for private chats, supergroups and channels
For private chats with business accounts, the intro of the business
For private chats with business accounts, the location of the business
For private chats with business accounts, the opening hours of the business
For private chats, the personal channel of the user
Information about the corresponding channel chat; for direct messages chats only
List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.
Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background
Identifier of the accent color for the chat's profile background. See profile accent colors for more details.
Custom emoji identifier of the emoji chosen by the chat for its profile background
Custom emoji identifier of the emoji status of the chat or the other party in a private chat
Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any
Bio of the other party in a private chat
True, if privacy settings of the other party in the private chat allows to use
tg://user?id=<user_id> links only in chats with the userTrue, if the privacy settings of the other party restrict sending voice and video note messages in the private chat
True, if users need to join the supergroup before they can send messages
True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators
Description, for groups, supergroups and channel chats
Primary invite link, for groups, supergroups and channel chats
The most recent pinned message (by sending date)
Default chat member permissions, for groups and supergroups
Information about types of gifts that are accepted by the chat or by the corresponding user for private chats
True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.
For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds
For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions
The time after which all messages sent to the chat will be automatically deleted; in seconds
True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.
True, if messages from the chat can't be forwarded to other chats
True, if new chat members will have access to old messages; available only to chat administrators
For supergroups, name of the group sticker set
True, if the bot can change the group sticker set
For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group.
Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
For supergroups, the location to which the supergroup is connected
For private chats, the rating of the user if any
For private chats, the first audio added to the profile of the user
The color scheme based on a unique gift that must be used for the chat's name, message replies and link previews
The number of Telegram Stars a general user has to pay to send a message to the chat
The bot that processes join request queries in the chat. The field is only available to chat administrators.
Минимальный JSON
JSON
{
"id": 1780243423,
"type": "private",
"accent_color_id": 1,
"max_reaction_count": 1,
"accepted_gift_types": {
"unlimited_gifts": true,
"limited_gifts": true,
"unique_gifts": true,
"premium_subscription": true,
"gifts_from_channels": true
}
}Где используется
Методы