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. | |
object_ptr< affiliateProgramInfo > | affiliate_program_ |
Information about the affiliate program of the bot; may be null if none. | |
int32 | web_app_background_light_color_ |
Default light background color for bot Web Apps; -1 if not specified. | |
int32 | web_app_background_dark_color_ |
Default dark background color for bot Web Apps; -1 if not specified. | |
int32 | web_app_header_light_color_ |
Default light header color for bot Web Apps; -1 if not specified. | |
int32 | web_app_header_dark_color_ |
Default dark header color for bot Web Apps; -1 if not specified. | |
object_ptr< botVerificationParameters > | verification_parameters_ |
Parameters of the verification that can be provided by the bot; may be null if none or the current user isn't the owner of the bot. | |
bool | can_get_revenue_statistics_ |
True, if the bot's revenue statistics are available to the current user. | |
bool | can_manage_emoji_status_ |
True, if the bot can manage emoji status of the current user. | |
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 = 1771886272 |
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_, | ||
object_ptr< affiliateProgramInfo > && | affiliate_program_, | ||
int32 | web_app_background_light_color_, | ||
int32 | web_app_background_dark_color_, | ||
int32 | web_app_header_light_color_, | ||
int32 | web_app_header_dark_color_, | ||
object_ptr< botVerificationParameters > && | verification_parameters_, | ||
bool | can_get_revenue_statistics_, | ||
bool | can_manage_emoji_status_, | ||
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] | affiliate_program_ | Information about the affiliate program of the bot; may be null if none. |
[in] | web_app_background_light_color_ | Default light background color for bot Web Apps; -1 if not specified. |
[in] | web_app_background_dark_color_ | Default dark background color for bot Web Apps; -1 if not specified. |
[in] | web_app_header_light_color_ | Default light header color for bot Web Apps; -1 if not specified. |
[in] | web_app_header_dark_color_ | Default dark header color for bot Web Apps; -1 if not specified. |
[in] | verification_parameters_ | Parameters of the verification that can be provided by the bot; may be null if none or the current user isn't the owner of the bot. |
[in] | can_get_revenue_statistics_ | True, if the bot's revenue statistics are available to the current user. |
[in] | can_manage_emoji_status_ | True, if the bot can manage emoji status of the current user. |
[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 |