|
tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
|
#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
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. | |
| int53 | manager_bot_user_id_ |
| Identifier of the bot, which manages the bot; 0 if none or unknown; for owner of the bot only. | |
| 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 = -586441582 |
| Identifier uniquely determining a type of the object. | |
| 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_, | ||
| int53 | manager_bot_user_id_, | ||
| 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] | manager_bot_user_id_ | Identifier of the bot, which manages the bot; 0 if none or unknown; for owner of the bot only. |
| [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 |
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.
| object_ptr<affiliateProgramInfo> td::td_api::botInfo::affiliate_program_ |
| object_ptr<animation> td::td_api::botInfo::animation_ |
| bool td::td_api::botInfo::can_get_revenue_statistics_ |
| bool td::td_api::botInfo::can_manage_emoji_status_ |
| array<object_ptr<botCommand> > td::td_api::botInfo::commands_ |
| object_ptr<chatAdministratorRights> td::td_api::botInfo::default_channel_administrator_rights_ |
| object_ptr<chatAdministratorRights> td::td_api::botInfo::default_group_administrator_rights_ |
| string td::td_api::botInfo::description_ |
| object_ptr<InternalLinkType> td::td_api::botInfo::edit_commands_link_ |
| object_ptr<InternalLinkType> td::td_api::botInfo::edit_description_link_ |
| object_ptr<InternalLinkType> td::td_api::botInfo::edit_description_media_link_ |
| object_ptr<InternalLinkType> td::td_api::botInfo::edit_settings_link_ |
| bool td::td_api::botInfo::has_media_previews_ |
|
static |
| int53 td::td_api::botInfo::manager_bot_user_id_ |
| object_ptr<botMenuButton> td::td_api::botInfo::menu_button_ |
| object_ptr<photo> td::td_api::botInfo::photo_ |
| string td::td_api::botInfo::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.
| string td::td_api::botInfo::short_description_ |
| object_ptr<botVerificationParameters> td::td_api::botInfo::verification_parameters_ |
| int32 td::td_api::botInfo::web_app_background_dark_color_ |
| int32 td::td_api::botInfo::web_app_background_light_color_ |
| int32 td::td_api::botInfo::web_app_header_dark_color_ |
| int32 td::td_api::botInfo::web_app_header_light_color_ |