TDLib
|
Inherits td::td_api::Object.
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< photo > | photo_ |
Photo shown in the chat with the bot if the chat is empty; may be null. | |
object_ptr< animation > | animation_ |
Animation shown in the chat with the bot if the chat is empty; may be null. | |
object_ptr< botMenuButton > | 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. | |
array< object_ptr< botCommand > > | commands_ |
List of the bot commands. | |
object_ptr< chatAdministratorRights > | default_group_administrator_rights_ |
Default administrator rights for adding the bot to basic group and supergroup chats; may be null. | |
object_ptr< chatAdministratorRights > | default_channel_administrator_rights_ |
Default administrator rights for adding the bot to channels; may be null. | |
object_ptr< InternalLinkType > | edit_commands_link_ |
The internal link, which can be used to edit bot commands; may be null. | |
object_ptr< InternalLinkType > | edit_description_link_ |
The internal link, which can be used to edit bot description; may be null. | |
object_ptr< InternalLinkType > | 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. | |
object_ptr< InternalLinkType > | edit_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. | |
Contains information about a bot.
td::td_api::botInfo::botInfo | ( | ) |
Contains information about a bot.
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.
[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. |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
Implements td::TlObject.
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
[in] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.