TDLib
Loading...
Searching...
No Matches
attachmentMenuBot Class Referencefinal

Inherits Object.

Description

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

Public Member Functions

 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 Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

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.
int53 bot_user_id_
 User identifier of the bot.
object_ptr< file > default_icon_
 Default icon for the bot in SVG format; may be null.
object_ptr< attachmentMenuBotColor > icon_color_
 Color to highlight selected icon of the bot if appropriate; 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 > ios_static_icon_
 Icon for the bot in SVG format for the official iOS app; may be null.
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.
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.
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.
bool request_write_access_
 True, if the user must be asked for the permission to send messages to the bot.
bool show_disclaimer_in_side_menu_
 True, if a disclaimer, why the bot is shown in the side menu, is needed.
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 supports_bot_chats_
 True, if the bot supports opening from attachment menu in private chats with other bots.
bool supports_channel_chats_
 True, if the bot supports opening from attachment menu in channel chats.
bool supports_group_chats_
 True, if the bot supports opening from attachment menu in basic group and supergroup chats.
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.
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.

Constructor & Destructor Documentation

◆ attachmentMenuBot() [1/2]

attachmentMenuBot ( )

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.

Member Function 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: