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

Inherits Object.

Description

Contains information about a bot.

Public Fields

string short_description_
 The text that is shown on the bot's profile page and is sent together with the link when users share the bot.
 
string description_
 The text shown in the chat with the bot if the chat is empty.
 
object_ptr< photophoto_
 Photo shown in the chat with the bot if the chat is empty; may be null.
 
object_ptr< animationanimation_
 Animation shown in the chat with the bot if the chat is empty; may be null.
 
object_ptr< botMenuButtonmenu_button_
 Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown.
 
array< object_ptr< botCommand > > commands_
 List of the bot commands.
 
string privacy_policy_url_
 The HTTP link to the privacy policy of the bot. If empty, then /privacy command must be used if supported by the bot. If the command isn't supported, then https://yangx.top/tgorg/privacy-tpa must be opened.
 
object_ptr< chatAdministratorRightsdefault_group_administrator_rights_
 Default administrator rights for adding the bot to basic group and supergroup chats; may be null.
 
object_ptr< chatAdministratorRightsdefault_channel_administrator_rights_
 Default administrator rights for adding the bot to channels; may be null.
 
bool has_media_previews_
 True, if the bot has media previews.
 
object_ptr< InternalLinkTypeedit_commands_link_
 The internal link, which can be used to edit bot commands; may be null.
 
object_ptr< InternalLinkTypeedit_description_link_
 The internal link, which can be used to edit bot description; may be null.
 
object_ptr< InternalLinkTypeedit_description_media_link_
 The internal link, which can be used to edit the photo or animation shown in the chat with the bot if the chat is empty; may be null.
 
object_ptr< InternalLinkTypeedit_settings_link_
 The internal link, which can be used to edit bot settings; may be null.
 

Public Instance Methods

 botInfo ()
 
 botInfo (string const &short_description_, string const &description_, object_ptr< photo > &&photo_, object_ptr< animation > &&animation_, object_ptr< botMenuButton > &&menu_button_, array< object_ptr< botCommand >> &&commands_, string const &privacy_policy_url_, object_ptr< chatAdministratorRights > &&default_group_administrator_rights_, object_ptr< chatAdministratorRights > &&default_channel_administrator_rights_, bool has_media_previews_, object_ptr< InternalLinkType > &&edit_commands_link_, object_ptr< InternalLinkType > &&edit_description_link_, object_ptr< InternalLinkType > &&edit_description_media_link_, object_ptr< InternalLinkType > &&edit_settings_link_)
 
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 = 136810594
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ botInfo() [1/2]

botInfo ( )

Contains information about a bot.

◆ botInfo() [2/2]

botInfo ( string const &  short_description_,
string const &  description_,
object_ptr< photo > &&  photo_,
object_ptr< animation > &&  animation_,
object_ptr< botMenuButton > &&  menu_button_,
array< object_ptr< botCommand >> &&  commands_,
string const &  privacy_policy_url_,
object_ptr< chatAdministratorRights > &&  default_group_administrator_rights_,
object_ptr< chatAdministratorRights > &&  default_channel_administrator_rights_,
bool  has_media_previews_,
object_ptr< InternalLinkType > &&  edit_commands_link_,
object_ptr< InternalLinkType > &&  edit_description_link_,
object_ptr< InternalLinkType > &&  edit_description_media_link_,
object_ptr< InternalLinkType > &&  edit_settings_link_ 
)

Contains information about a bot.

Parameters
[in]short_description_The text that is shown on the bot's profile page and is sent together with the link when users share the bot.
[in]description_The text shown in the chat with the bot if the chat is empty.
[in]photo_Photo shown in the chat with the bot if the chat is empty; may be null.
[in]animation_Animation shown in the chat with the bot if the chat is empty; may be null.
[in]menu_button_Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown.
[in]commands_List of the bot commands.
[in]privacy_policy_url_The HTTP link to the privacy policy of the bot. If empty, then /privacy command must be used if supported by the bot. If the command isn't supported, then https://yangx.top/tgorg/privacy-tpa must be opened.
[in]default_group_administrator_rights_Default administrator rights for adding the bot to basic group and supergroup chats; may be null.
[in]default_channel_administrator_rights_Default administrator rights for adding the bot to channels; may be null.
[in]has_media_previews_True, if the bot has media previews.
[in]edit_commands_link_The internal link, which can be used to edit bot commands; may be null.
[in]edit_description_link_The internal link, which can be used to edit bot description; may be null.
[in]edit_description_media_link_The internal link, which can be used to edit the photo or animation shown in the chat with the bot if the chat is empty; may be null.
[in]edit_settings_link_The internal link, which can be used to edit bot settings; 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: