AttachmentMenuBot¶
Represents a bot, which can be added to attachment or side menu
AttachmentMenuBot(
bot_user_id: int53,
supports_self_chat: Bool,
supports_user_chats: Bool,
supports_bot_chats: Bool,
supports_group_chats: Bool,
supports_channel_chats: Bool,
request_write_access: Bool,
is_added: Bool,
show_in_attachment_menu: Bool,
show_in_side_menu: Bool,
show_disclaimer_in_side_menu: Bool,
name: string,
name_color: AttachmentMenuBotColor,
default_icon: File,
ios_static_icon: File,
ios_animated_icon: File,
ios_side_menu_icon: File,
android_icon: File,
android_side_menu_icon: File,
macos_icon: File,
macos_side_menu_icon: File,
icon_color: AttachmentMenuBotColor,
web_app_placeholder: File
) → AttachmentMenuBot
bot_user_id¶
int53
User identifier of the bot
supports_self_chat¶
Bool
True, if the bot supports opening from attachment menu in the chat with the bot
supports_user_chats¶
Bool
True, if the bot supports opening from attachment menu in private chats with ordinary users
supports_bot_chats¶
Bool
True, if the bot supports opening from attachment menu in private chats with other bots
supports_group_chats¶
Bool
True, if the bot supports opening from attachment menu in basic group and supergroup chats
supports_channel_chats¶
Bool
True, if the bot supports opening from attachment menu in channel chats
request_write_access¶
Bool
True, if the user must be asked for the permission to send messages to the bot
is_added¶
Bool
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
show_in_attachment_menu¶
Bool
True, if the bot must be shown in the attachment menu
show_in_side_menu¶
Bool
True, if the bot must be shown in the side menu
show_disclaimer_in_side_menu¶
Bool
True, if a disclaimer, why the bot is shown in the side menu, is needed
name¶
string
Name for the bot in attachment menu
name_color¶
Color to highlight selected name of the bot if appropriate; may be null
default_icon¶
Default icon for the bot in SVG format; may be null
ios_static_icon¶
Icon for the bot in SVG format for the official iOS app; may be null
ios_animated_icon¶
Icon for the bot in TGS format for the official iOS app; may be null
ios_side_menu_icon¶
Icon for the bot in PNG format for the official iOS app side menu; may be null
android_icon¶
Icon for the bot in TGS format for the official Android app; may be null
android_side_menu_icon¶
Icon for the bot in SVG format for the official Android app side menu; may be null
macos_icon¶
Icon for the bot in TGS format for the official native macOS app; may be null
macos_side_menu_icon¶
Icon for the bot in PNG format for the official macOS app side menu; may be null
icon_color¶
Color to highlight selected icon of the bot if appropriate; may be null
web_app_placeholder¶
Default placeholder for opened Web Apps in SVG format; may be null