Interface SupergroupChat

Internal type for supergroup chats

interface SupergroupChat {
    first_name?: undefined;
    id: number;
    is_forum?: true;
    last_name?: undefined;
    title: string;
    type: "supergroup";
    username?: string;
}

Properties

first_name?: undefined

First name of the other party in a private chat

id: number

Unique identifier for this chat.

is_forum?: true

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

last_name?: undefined

Last name of the other party in a private chat

title: string

Title, for supergroups, channels and group chats

type: "supergroup"

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

username?: string

Username, for private chats, supergroups and channels if available