Inherits Object.
Describes rights of a business bot.
Public Fields | |
| bool | can_reply_ |
| True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours. | |
| bool | can_read_messages_ |
| True, if the bot can mark incoming private messages as read. | |
| bool | can_delete_sent_messages_ |
| True, if the bot can delete sent messages. | |
| bool | can_delete_all_messages_ |
| True, if the bot can delete any message. | |
| bool | can_edit_name_ |
| True, if the bot can edit name of the business account. | |
| bool | can_edit_bio_ |
| True, if the bot can edit bio of the business account. | |
| bool | can_edit_profile_photo_ |
| True, if the bot can edit profile photo of the business account. | |
| bool | can_edit_username_ |
| True, if the bot can edit username of the business account. | |
| bool | can_view_gifts_and_stars_ |
| True, if the bot can view gifts and amount of Telegram Stars owned by the business account. | |
| bool | can_sell_gifts_ |
| True, if the bot can sell regular gifts received by the business account. | |
| bool | can_change_gift_settings_ |
| True, if the bot can change gift receiving settings of the business account. | |
| bool | can_transfer_and_upgrade_gifts_ |
| True, if the bot can transfer and upgrade gifts received by the business account. | |
| bool | can_transfer_stars_ |
| True, if the bot can transfer Telegram Stars received by the business account to account of the bot, or use them to upgrade and transfer gifts. | |
| bool | can_manage_stories_ |
| True, if the bot can post, edit and delete stories. | |
Public Instance Methods | |
| businessBotRights () | |
| businessBotRights (bool can_reply_, bool can_read_messages_, bool can_delete_sent_messages_, bool can_delete_all_messages_, bool can_edit_name_, bool can_edit_bio_, bool can_edit_profile_photo_, bool can_edit_username_, bool can_view_gifts_and_stars_, bool can_sell_gifts_, bool can_change_gift_settings_, bool can_transfer_and_upgrade_gifts_, bool can_transfer_stars_, bool can_manage_stories_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
| virtual void | store (TlStorerUnsafe &s) const |
| virtual void | store (TlStorerCalcLength &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (TlObject &&)=default |
| virtual | ~TlObject ()=default |
Static Public Attributes | |
| static const std::int32_t | ID = 1224839038 |
| Identifier uniquely determining a type of the object. | |
Describes rights of a business bot.
| businessBotRights | ( | bool | can_reply_, |
| bool | can_read_messages_, | ||
| bool | can_delete_sent_messages_, | ||
| bool | can_delete_all_messages_, | ||
| bool | can_edit_name_, | ||
| bool | can_edit_bio_, | ||
| bool | can_edit_profile_photo_, | ||
| bool | can_edit_username_, | ||
| bool | can_view_gifts_and_stars_, | ||
| bool | can_sell_gifts_, | ||
| bool | can_change_gift_settings_, | ||
| bool | can_transfer_and_upgrade_gifts_, | ||
| bool | can_transfer_stars_, | ||
| bool | can_manage_stories_ | ||
| ) |
Describes rights of a business bot.
| [in] | can_reply_ | True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours. |
| [in] | can_read_messages_ | True, if the bot can mark incoming private messages as read. |
| [in] | can_delete_sent_messages_ | True, if the bot can delete sent messages. |
| [in] | can_delete_all_messages_ | True, if the bot can delete any message. |
| [in] | can_edit_name_ | True, if the bot can edit name of the business account. |
| [in] | can_edit_bio_ | True, if the bot can edit bio of the business account. |
| [in] | can_edit_profile_photo_ | True, if the bot can edit profile photo of the business account. |
| [in] | can_edit_username_ | True, if the bot can edit username of the business account. |
| [in] | can_view_gifts_and_stars_ | True, if the bot can view gifts and amount of Telegram Stars owned by the business account. |
| [in] | can_sell_gifts_ | True, if the bot can sell regular gifts received by the business account. |
| [in] | can_change_gift_settings_ | True, if the bot can change gift receiving settings of the business account. |
| [in] | can_transfer_and_upgrade_gifts_ | True, if the bot can transfer and upgrade gifts received by the business account. |
| [in] | can_transfer_stars_ | True, if the bot can transfer Telegram Stars received by the business account to account of the bot, or use them to upgrade and transfer gifts. |
| [in] | can_manage_stories_ | True, if the bot can post, edit and delete stories. |
|
finalvirtual |