ChatFullInfo

@Serializable
data class ChatFullInfo(val id: Long, val type: ChatType, val title: String? = null, val username: String? = null, val firstName: String? = null, val lastName: String? = null, val isForum: Boolean? = null, val accentColorId: Int, val maxReactionCount: Int, val photo: ChatPhoto? = null, val activeUsernames: List<String>? = null, val birthdate: Birthdate? = null, val businessIntro: BusinessIntro? = null, val businessLocation: BusinessLocation? = null, val businessOpeningHours: BusinessOpeningHours? = null, val personalChat: Chat? = null, val availableReactions: List<ReactionType>? = null, val backgroundCustomEmojiId: String? = null, val profileAccentColorId: Int? = null, val profileBackgroundCustomEmojiId: String? = null, val emojiStatusCustomEmojiId: String? = null, val emojiStatusExpirationDate: Int? = null, val bio: String? = null, val hasPrivateForwards: Boolean? = null, val hasRestrictedVoiceAndVideoMessages: Boolean? = null, val joinToSendMessages: Boolean? = null, val joinByRequest: Boolean? = null, val description: String? = null, val inviteLink: String? = null, val pinnedMessage: Message? = null, val permissions: ChatPermissions? = null, val canSendPaidMedia: Boolean? = null, val slowModeDelay: Int? = null, val unrestrictBoostCount: Int? = null, val messageAutoDeleteTime: Int? = null, val hasAggressiveAntiSpamEnabled: Boolean? = null, val hasHiddenMembers: Boolean? = null, val hasProtectedContent: Boolean? = null, val hasVisibleHistory: Boolean? = null, val stickerSetName: String? = null, val canSetStickerSet: Boolean? = null, val customEmojiStickerSetName: String? = null, val linkedChatId: Long? = null, val location: ChatLocation? = null)

This object contains full information about a chat.

Api reference

Constructors

Link copied to clipboard
constructor(id: Long, type: ChatType, title: String? = null, username: String? = null, firstName: String? = null, lastName: String? = null, isForum: Boolean? = null, accentColorId: Int, maxReactionCount: Int, photo: ChatPhoto? = null, activeUsernames: List<String>? = null, birthdate: Birthdate? = null, businessIntro: BusinessIntro? = null, businessLocation: BusinessLocation? = null, businessOpeningHours: BusinessOpeningHours? = null, personalChat: Chat? = null, availableReactions: List<ReactionType>? = null, backgroundCustomEmojiId: String? = null, profileAccentColorId: Int? = null, profileBackgroundCustomEmojiId: String? = null, emojiStatusCustomEmojiId: String? = null, emojiStatusExpirationDate: Int? = null, bio: String? = null, hasPrivateForwards: Boolean? = null, hasRestrictedVoiceAndVideoMessages: Boolean? = null, joinToSendMessages: Boolean? = null, joinByRequest: Boolean? = null, description: String? = null, inviteLink: String? = null, pinnedMessage: Message? = null, permissions: ChatPermissions? = null, canSendPaidMedia: Boolean? = null, slowModeDelay: Int? = null, unrestrictBoostCount: Int? = null, messageAutoDeleteTime: Int? = null, hasAggressiveAntiSpamEnabled: Boolean? = null, hasHiddenMembers: Boolean? = null, hasProtectedContent: Boolean? = null, hasVisibleHistory: Boolean? = null, stickerSetName: String? = null, canSetStickerSet: Boolean? = null, customEmojiStickerSetName: String? = null, linkedChatId: Long? = null, location: ChatLocation? = null)

Properties

Link copied to clipboard

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.

Link copied to clipboard

Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels

Link copied to clipboard

Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.

Link copied to clipboard

Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background

Link copied to clipboard
val bio: String? = null

Optional. Bio of the other party in a private chat

Link copied to clipboard
val birthdate: Birthdate? = null

Optional. For private chats, the date of birth of the user

Link copied to clipboard

Optional. For private chats with business accounts, the intro of the business

Link copied to clipboard

Optional. For private chats with business accounts, the location of the business

Link copied to clipboard

Optional. For private chats with business accounts, the opening hours of the business

Link copied to clipboard

Optional. True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.

Link copied to clipboard

Optional. True, if the bot can change the group sticker set

Link copied to clipboard

Optional. 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.

Link copied to clipboard
val description: String? = null

Optional. Description, for groups, supergroups and channel chats

Link copied to clipboard

Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat

Link copied to clipboard

Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any

Link copied to clipboard
val firstName: String? = null

Optional. First name of the other party in a private chat

Link copied to clipboard

Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.

Link copied to clipboard

Optional. True, if non-administrators can only get the list of bots and administrators in the chat

Link copied to clipboard

Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id= links only in chats with the user

Link copied to clipboard

Optional. True, if messages from the chat can't be forwarded to other chats

Link copied to clipboard

Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat

Link copied to clipboard

Optional. True, if new chat members will have access to old messages; available only to chat administrators

Link copied to clipboard
val id: Long

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.

Link copied to clipboard
val inviteLink: String? = null

Optional. Primary invite link, for groups, supergroups and channel chats

Link copied to clipboard
val isForum: Boolean? = null

Optional. True, if the supergroup chat is a forum (has topics enabled)

Link copied to clipboard
val joinByRequest: Boolean? = null

Optional. True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators

Link copied to clipboard

Optional. True, if users need to join the supergroup before they can send messages

Link copied to clipboard
val lastName: String? = null

Optional. Last name of the other party in a private chat

Link copied to clipboard
val linkedChatId: Long? = null

Optional. 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.

Link copied to clipboard
val location: ChatLocation? = null

Optional. For supergroups, the location to which the supergroup is connected

Link copied to clipboard

The maximum number of reactions that can be set on a message in the chat

Link copied to clipboard

Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds

Link copied to clipboard

Optional. Default chat member permissions, for groups and supergroups

Link copied to clipboard
val personalChat: Chat? = null

Optional. For private chats, the personal channel of the user

Link copied to clipboard
val photo: ChatPhoto? = null

Optional. Chat photo

Link copied to clipboard
val pinnedMessage: Message? = null

Optional. The most recent pinned message (by sending date)

Link copied to clipboard

Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more details.

Link copied to clipboard

Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background

Link copied to clipboard
val slowModeDelay: Int? = null

Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds

Link copied to clipboard
val stickerSetName: String? = null

Optional. For supergroups, name of the group sticker set

Link copied to clipboard
val title: String? = null

Optional. Title, for supergroups, channels and group chats

Link copied to clipboard

Type of the chat, can be either "private", "group", "supergroup" or "channel"

Link copied to clipboard

Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions

Link copied to clipboard
val username: String? = null

Optional. Username, for private chats, supergroups and channels if available