Interface AttachmentMenuBot

Represents a bot, which can be added to attachment or side menu.

interface AttachmentMenuBot {
    @type: "attachmentMenuBot";
    android_icon: File;
    android_side_menu_icon: File;
    bot_user_id: number;
    default_icon: File;
    icon_color: AttachmentMenuBotColor;
    ios_animated_icon: File;
    ios_side_menu_icon: File;
    ios_static_icon: File;
    is_added?: boolean;
    macos_icon: File;
    macos_side_menu_icon: File;
    name: string;
    name_color: AttachmentMenuBotColor;
    request_write_access?: boolean;
    show_disclaimer_in_side_menu?: boolean;
    show_in_attachment_menu?: boolean;
    show_in_side_menu?: boolean;
    supports_bot_chats?: boolean;
    supports_channel_chats?: boolean;
    supports_group_chats?: boolean;
    supports_self_chat?: boolean;
    supports_user_chats?: boolean;
    web_app_placeholder: File;
}

Properties

@type: "attachmentMenuBot"
android_icon: File

Icon for the bot in TGS format for the official Android app; may be null.

android_side_menu_icon: File

Icon for the bot in SVG format for the official Android app side menu; may be null.

bot_user_id: number

User identifier of the bot.

default_icon: File

Default icon for the bot in SVG format; may be null.

Color to highlight selected icon of the bot if appropriate; may be null.

ios_animated_icon: File

Icon for the bot in TGS format for the official iOS app; may be null.

ios_side_menu_icon: File

Icon for the bot in PNG format for the official iOS app side menu; may be null.

ios_static_icon: File

Icon for the bot in SVG format for the official iOS app; may be null.

is_added?: boolean

True, if the bot was explicitly added by the user. If the bot isn't added, then on the first bot launch toggleBotIsAddedToAttachmentMenu must be called and the bot must be added or removed.

macos_icon: File

Icon for the bot in TGS format for the official native macOS app; may be null.

macos_side_menu_icon: File

Icon for the bot in PNG format for the official macOS app side menu; may be null.

name: string

Name for the bot in attachment menu.

Color to highlight selected name of the bot if appropriate; may be null.

request_write_access?: boolean

True, if the user must be asked for the permission to send messages to the bot.

show_disclaimer_in_side_menu?: boolean

True, if a disclaimer, why the bot is shown in the side menu, is needed.

show_in_attachment_menu?: boolean

True, if the bot must be shown in the attachment menu.

show_in_side_menu?: boolean

True, if the bot must be shown in the side menu.

supports_bot_chats?: boolean

True, if the bot supports opening from attachment menu in private chats with other bots.

supports_channel_chats?: boolean

True, if the bot supports opening from attachment menu in channel chats.

supports_group_chats?: boolean

True, if the bot supports opening from attachment menu in basic group and supergroup chats.

supports_self_chat?: boolean

True, if the bot supports opening from attachment menu in the chat with the bot.

supports_user_chats?: boolean

True, if the bot supports opening from attachment menu in private chats with ordinary users.

web_app_placeholder: File

Default placeholder for opened Web Apps in SVG format; may be null.