Internal type for supergroup chats

interface SupergroupChat {
    accent_color_id: number;
    active_usernames?: string[];
    available_reactions?: ReactionType[];
    background_custom_emoji_id?: string;
    bio?: string;
    birthdate?: undefined;
    business_intro?: undefined;
    business_location?: undefined;
    business_opening_hours?: undefined;
    can_send_paid_media?: undefined;
    can_set_sticker_set?: true;
    custom_emoji_sticker_set_name?: string;
    description?: string;
    emoji_status_custom_emoji_id?: string;
    emoji_status_expiration_date?: number;
    first_name?: undefined;
    has_aggressive_anti_spam_enabled?: true;
    has_hidden_members?: true;
    has_private_forwards?: undefined;
    has_protected_content?: true;
    has_restricted_voice_and_video_messages?: undefined;
    has_visible_history?: true;
    id: number;
    invite_link?: string;
    is_forum?: true;
    join_by_request?: true;
    join_to_send_messages?: true;
    last_name?: undefined;
    linked_chat_id?: number;
    location?: ChatLocation;
    max_reaction_count: number;
    message_auto_delete_time?: number;
    permissions?: ChatPermissions;
    personal_chat?: undefined;
    photo?: ChatPhoto;
    pinned_message?: Message;
    profile_accent_color_id?: number;
    profile_background_custom_emoji_id?: string;
    slow_mode_delay?: number;
    sticker_set_name?: string;
    title: string;
    type: "supergroup";
    unrestrict_boost_count?: number;
    username?: string;
}

Properties

accent_color_id: number

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.

active_usernames?: string[]

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

available_reactions?: ReactionType[]

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

background_custom_emoji_id?: string

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

bio?: string

Bio of the other party in a private chat

birthdate?: undefined

For private chats, the date of birth of the user

business_intro?: undefined

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

business_location?: undefined

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

business_opening_hours?: undefined

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

can_send_paid_media?: undefined

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

can_set_sticker_set?: true

True, if the bot can change the group sticker set

custom_emoji_sticker_set_name?: string

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.

description?: string

Description, for groups, supergroups and channel chats

emoji_status_custom_emoji_id?: string

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

emoji_status_expiration_date?: number

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

first_name?: undefined

First name of the other party in a private chat

has_aggressive_anti_spam_enabled?: true

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

has_hidden_members?: true

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

has_private_forwards?: undefined

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

has_protected_content?: true

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

has_restricted_voice_and_video_messages?: undefined

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

has_visible_history?: true

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

id: number

Unique identifier for this chat.

invite_link?: string

Primary invite link, for groups, supergroups and channel chats

is_forum?: true

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

join_by_request?: true

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

join_to_send_messages?: true

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

last_name?: undefined

Last name of the other party in a private chat

linked_chat_id?: number

Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats.

location?: ChatLocation

For supergroups, the location to which the supergroup is connected

max_reaction_count: number

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

message_auto_delete_time?: number

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

permissions?: ChatPermissions

Default chat member permissions, for groups and supergroups

personal_chat?: undefined

For private chats, the personal channel of the user

photo?: ChatPhoto

Chat photo

pinned_message?: Message

The most recent pinned message (by sending date)

profile_accent_color_id?: number

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

profile_background_custom_emoji_id?: string

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

slow_mode_delay?: number

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

sticker_set_name?: string

For supergroups, name of the group sticker set

title: string

Title, for supergroups, channels and group chats

type: "supergroup"

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

unrestrict_boost_count?: number

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

username?: string

Username, for private chats, supergroups and channels if available