Inherits Object.
Represents a bot, which can be added to attachment or side menu.
Public Fields | |
int53 | bot_user_id_ |
User identifier of the bot. | |
bool | supports_self_chat_ |
True, if the bot supports opening from attachment menu in the chat with the bot. | |
bool | supports_user_chats_ |
True, if the bot supports opening from attachment menu in private chats with ordinary users. | |
bool | supports_bot_chats_ |
True, if the bot supports opening from attachment menu in private chats with other bots. | |
bool | supports_group_chats_ |
True, if the bot supports opening from attachment menu in basic group and supergroup chats. | |
bool | supports_channel_chats_ |
True, if the bot supports opening from attachment menu in channel chats. | |
bool | request_write_access_ |
True, if the user must be asked for the permission to send messages to the bot. | |
bool | is_added_ |
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. | |
bool | show_in_attachment_menu_ |
True, if the bot must be shown in the attachment menu. | |
bool | show_in_side_menu_ |
True, if the bot must be shown in the side menu. | |
bool | show_disclaimer_in_side_menu_ |
True, if a disclaimer, why the bot is shown in the side menu, is needed. | |
string | name_ |
Name for the bot in attachment menu. | |
object_ptr< attachmentMenuBotColor > | name_color_ |
Color to highlight selected name of the bot if appropriate; may be null. | |
object_ptr< file > | default_icon_ |
Default icon for the bot in SVG format; may be null. | |
object_ptr< file > | ios_static_icon_ |
Icon for the bot in SVG format for the official iOS app; may be null. | |
object_ptr< file > | ios_animated_icon_ |
Icon for the bot in TGS format for the official iOS app; may be null. | |
object_ptr< file > | ios_side_menu_icon_ |
Icon for the bot in PNG format for the official iOS app side menu; may be null. | |
object_ptr< file > | android_icon_ |
Icon for the bot in TGS format for the official Android app; may be null. | |
object_ptr< file > | android_side_menu_icon_ |
Icon for the bot in SVG format for the official Android app side menu; may be null. | |
object_ptr< file > | macos_icon_ |
Icon for the bot in TGS format for the official native macOS app; may be null. | |
object_ptr< file > | macos_side_menu_icon_ |
Icon for the bot in PNG format for the official macOS app side menu; may be null. | |
object_ptr< attachmentMenuBotColor > | icon_color_ |
Color to highlight selected icon of the bot if appropriate; may be null. | |
object_ptr< file > | web_app_placeholder_ |
Default placeholder for opened Web Apps in SVG format; may be null. | |
Static Public Attributes | |
static const std::int32_t | ID = -1183966273 |
Identifier uniquely determining a type of the object. | |
Represents a bot, which can be added to attachment or side menu.
attachmentMenuBot | ( | int53 | bot_user_id_, |
bool | 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_, | ||
string const & | name_, | ||
object_ptr< attachmentMenuBotColor > && | name_color_, | ||
object_ptr< file > && | default_icon_, | ||
object_ptr< file > && | ios_static_icon_, | ||
object_ptr< file > && | ios_animated_icon_, | ||
object_ptr< file > && | ios_side_menu_icon_, | ||
object_ptr< file > && | android_icon_, | ||
object_ptr< file > && | android_side_menu_icon_, | ||
object_ptr< file > && | macos_icon_, | ||
object_ptr< file > && | macos_side_menu_icon_, | ||
object_ptr< attachmentMenuBotColor > && | icon_color_, | ||
object_ptr< file > && | web_app_placeholder_ | ||
) |
Represents a bot, which can be added to attachment or side menu.
[in] | bot_user_id_ | User identifier of the bot. |
[in] | supports_self_chat_ | True, if the bot supports opening from attachment menu in the chat with the bot. |
[in] | supports_user_chats_ | True, if the bot supports opening from attachment menu in private chats with ordinary users. |
[in] | supports_bot_chats_ | True, if the bot supports opening from attachment menu in private chats with other bots. |
[in] | supports_group_chats_ | True, if the bot supports opening from attachment menu in basic group and supergroup chats. |
[in] | supports_channel_chats_ | True, if the bot supports opening from attachment menu in channel chats. |
[in] | request_write_access_ | True, if the user must be asked for the permission to send messages to the bot. |
[in] | is_added_ | 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. |
[in] | show_in_attachment_menu_ | True, if the bot must be shown in the attachment menu. |
[in] | show_in_side_menu_ | True, if the bot must be shown in the side menu. |
[in] | show_disclaimer_in_side_menu_ | True, if a disclaimer, why the bot is shown in the side menu, is needed. |
[in] | name_ | Name for the bot in attachment menu. |
[in] | name_color_ | Color to highlight selected name of the bot if appropriate; may be null. |
[in] | default_icon_ | Default icon for the bot in SVG format; may be null. |
[in] | ios_static_icon_ | Icon for the bot in SVG format for the official iOS app; may be null. |
[in] | ios_animated_icon_ | Icon for the bot in TGS format for the official iOS app; may be null. |
[in] | ios_side_menu_icon_ | Icon for the bot in PNG format for the official iOS app side menu; may be null. |
[in] | android_icon_ | Icon for the bot in TGS format for the official Android app; may be null. |
[in] | android_side_menu_icon_ | Icon for the bot in SVG format for the official Android app side menu; may be null. |
[in] | macos_icon_ | Icon for the bot in TGS format for the official native macOS app; may be null. |
[in] | macos_side_menu_icon_ | Icon for the bot in PNG format for the official macOS app side menu; may be null. |
[in] | icon_color_ | Color to highlight selected icon of the bot if appropriate; may be null. |
[in] | web_app_placeholder_ | Default placeholder for opened Web Apps in SVG format; may be null. |
|
finalvirtual |