Interface PrivateChat

Internal type for private chats

interface PrivateChat {
    first_name: string;
    id: number;
    is_forum?: undefined;
    last_name?: string;
    title?: undefined;
    type: "private";
    username?: string;
}

Properties

first_name: string

First name of the other party in a private chat

id: number

Unique identifier for this chat.

is_forum?: undefined

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

last_name?: string

Last name of the other party in a private chat

title?: undefined

Title, for supergroups, channels and group chats

type: "private"

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

username?: string

Username, for private chats, supergroups and channels if available