Inherits Object.
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< 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. | |
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://telegram.org/privacy-tpa must be opened. | |
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. | |
bool | can_get_revenue_statistics_ |
True, if the bot's revenue statistics are available. | |
bool | has_media_previews_ |
True, if the bot has media previews. | |
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 = -417731854 |
Identifier uniquely determining a type of the object. | |
botInfo | ( | ) |
Contains information about a bot.
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 | can_get_revenue_statistics_, | ||
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.
[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://telegram.org/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] | can_get_revenue_statistics_ | True, if the bot's revenue statistics are available. |
[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. |
|
finalvirtual |