Interface UserFromGetMe

This object represents a Telegram user or bot that was returned by getMe.

interface UserFromGetMe {
    added_to_attachment_menu?: true;
    can_connect_to_business: boolean;
    can_join_groups: boolean;
    can_read_all_group_messages: boolean;
    first_name: string;
    has_main_web_app: boolean;
    id: number;
    is_bot: true;
    is_premium?: true;
    language_code?: string;
    last_name?: string;
    supports_inline_queries: boolean;
    username: string;
}

Hierarchy (view full)

Properties

added_to_attachment_menu?: true

True, if this user added the bot to the attachment menu

can_connect_to_business: boolean

True, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe.

can_join_groups: boolean

True, if the bot can be invited to groups. Returned only in getMe.

can_read_all_group_messages: boolean

True, if privacy mode is disabled for the bot. Returned only in getMe.

first_name: string

User's or bot's first name

has_main_web_app: boolean

True, if the bot has main Web App. Returned only in getMe.

id: number

Unique identifier for this user or bot.

is_bot: true

True, if this user is a bot

is_premium?: true

True, if this user is a Telegram Premium user

language_code?: string

IETF language tag of the user's language

last_name?: string

User's or bot's last name

supports_inline_queries: boolean

True, if the bot supports inline queries. Returned only in getMe.

username: string

User's or bot's username