TDLib
Loading...
Searching...
No Matches
td::td_api::botInfo Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 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_, object_ptr< chatAdministratorRights > &&default_group_administrator_rights_, object_ptr< chatAdministratorRights > &&default_channel_administrator_rights_, 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_)
 
std::int32_t get_id () const final
 
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

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

Static Public Attributes

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

Detailed Description

Contains information about a bot.

Constructor & Destructor Documentation

◆ botInfo() [1/2]

td::td_api::botInfo::botInfo ( )

Contains information about a bot.

◆ botInfo() [2/2]

td::td_api::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_,
object_ptr< chatAdministratorRights > &&  default_group_administrator_rights_,
object_ptr< chatAdministratorRights > &&  default_channel_administrator_rights_,
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]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]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.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::botInfo::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::botInfo::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.


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