tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::attachmentMenuBot Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::attachmentMenuBot:
td::td_api::Object td::TlObject

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 td::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
 

Public Attributes

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&#x27;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.
 

Static Public Attributes

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

Detailed Description

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

Definition at line 1486 of file td_api.h.

Constructor & Destructor Documentation

◆ attachmentMenuBot() [1/2]

td::td_api::attachmentMenuBot::attachmentMenuBot ( )

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

◆ attachmentMenuBot() [2/2]

td::td_api::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_ 
)

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&#x27;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 td::td_api::attachmentMenuBot::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 td::TlObject.

Member Data Documentation

◆ android_icon_

object_ptr<file> td::td_api::attachmentMenuBot::android_icon_

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

Definition at line 1531 of file td_api.h.

◆ android_side_menu_icon_

object_ptr<file> td::td_api::attachmentMenuBot::android_side_menu_icon_

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

Definition at line 1533 of file td_api.h.

◆ bot_user_id_

int53 td::td_api::attachmentMenuBot::bot_user_id_

User identifier of the bot.

Definition at line 1497 of file td_api.h.

◆ default_icon_

object_ptr<file> td::td_api::attachmentMenuBot::default_icon_

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

Definition at line 1523 of file td_api.h.

◆ icon_color_

object_ptr<attachmentMenuBotColor> td::td_api::attachmentMenuBot::icon_color_

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

Definition at line 1539 of file td_api.h.

◆ ID

const std::int32_t td::td_api::attachmentMenuBot::ID = -1183966273
static

Identifier uniquely determining a type of the object.

Definition at line 1578 of file td_api.h.

◆ ios_animated_icon_

object_ptr<file> td::td_api::attachmentMenuBot::ios_animated_icon_

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

Definition at line 1527 of file td_api.h.

◆ ios_side_menu_icon_

object_ptr<file> td::td_api::attachmentMenuBot::ios_side_menu_icon_

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

Definition at line 1529 of file td_api.h.

◆ ios_static_icon_

object_ptr<file> td::td_api::attachmentMenuBot::ios_static_icon_

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

Definition at line 1525 of file td_api.h.

◆ is_added_

bool td::td_api::attachmentMenuBot::is_added_

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

Definition at line 1511 of file td_api.h.

◆ macos_icon_

object_ptr<file> td::td_api::attachmentMenuBot::macos_icon_

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

Definition at line 1535 of file td_api.h.

◆ macos_side_menu_icon_

object_ptr<file> td::td_api::attachmentMenuBot::macos_side_menu_icon_

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

Definition at line 1537 of file td_api.h.

◆ name_

string td::td_api::attachmentMenuBot::name_

Name for the bot in attachment menu.

Definition at line 1519 of file td_api.h.

◆ name_color_

object_ptr<attachmentMenuBotColor> td::td_api::attachmentMenuBot::name_color_

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

Definition at line 1521 of file td_api.h.

◆ request_write_access_

bool td::td_api::attachmentMenuBot::request_write_access_

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

Definition at line 1509 of file td_api.h.

◆ show_disclaimer_in_side_menu_

bool td::td_api::attachmentMenuBot::show_disclaimer_in_side_menu_

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

Definition at line 1517 of file td_api.h.

◆ show_in_attachment_menu_

bool td::td_api::attachmentMenuBot::show_in_attachment_menu_

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

Definition at line 1513 of file td_api.h.

◆ show_in_side_menu_

bool td::td_api::attachmentMenuBot::show_in_side_menu_

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

Definition at line 1515 of file td_api.h.

◆ supports_bot_chats_

bool td::td_api::attachmentMenuBot::supports_bot_chats_

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

Definition at line 1503 of file td_api.h.

◆ supports_channel_chats_

bool td::td_api::attachmentMenuBot::supports_channel_chats_

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

Definition at line 1507 of file td_api.h.

◆ supports_group_chats_

bool td::td_api::attachmentMenuBot::supports_group_chats_

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

Definition at line 1505 of file td_api.h.

◆ supports_self_chat_

bool td::td_api::attachmentMenuBot::supports_self_chat_

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

Definition at line 1499 of file td_api.h.

◆ supports_user_chats_

bool td::td_api::attachmentMenuBot::supports_user_chats_

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

Definition at line 1501 of file td_api.h.

◆ web_app_placeholder_

object_ptr<file> td::td_api::attachmentMenuBot::web_app_placeholder_

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

Definition at line 1541 of file td_api.h.


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