List of all members | Public Fields | Public Instance Methods | Static Public Attributes
attachmentMenuBot Class Referencefinal

Inherits Object.

Description

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< attachmentMenuBotColorname_color_
 Color to highlight selected name of the bot if appropriate; may be null.
 
object_ptr< filedefault_icon_
 Default icon for the bot in SVG format; may be null.
 
object_ptr< fileios_static_icon_
 Icon for the bot in SVG format for the official iOS app; may be null.
 
object_ptr< fileios_animated_icon_
 Icon for the bot in TGS format for the official iOS app; may be null.
 
object_ptr< fileios_side_menu_icon_
 Icon for the bot in PNG format for the official iOS app side menu; may be null.
 
object_ptr< fileandroid_icon_
 Icon for the bot in TGS format for the official Android app; may be null.
 
object_ptr< fileandroid_side_menu_icon_
 Icon for the bot in SVG format for the official Android app side menu; may be null.
 
object_ptr< filemacos_icon_
 Icon for the bot in TGS format for the official native macOS app; may be null.
 
object_ptr< filemacos_side_menu_icon_
 Icon for the bot in PNG format for the official macOS app side menu; may be null.
 
object_ptr< attachmentMenuBotColoricon_color_
 Color to highlight selected icon of the bot if appropriate; may be null.
 
object_ptr< fileweb_app_placeholder_
 Default placeholder for opened Web Apps in SVG format; may be null.
 

Public Instance Methods

 attachmentMenuBot ()
 
 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_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = -1183966273
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ attachmentMenuBot() [1/2]

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

◆ attachmentMenuBot() [2/2]

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.

Parameters
[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.

Method Documentation

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: