Inherits Object.
Describes rights of a business bot.
|
| | 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 |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject & | operator= (TlObject &&)=default |
| virtual void | store (TlStorerCalcLength &s) const |
| virtual void | store (TlStorerUnsafe &s) const |
| | TlObject ()=default |
| | TlObject (const TlObject &)=delete |
| | TlObject (TlObject &&)=default |
| virtual | ~TlObject ()=default |
|
|
bool | can_change_gift_settings_ |
| | True, if the bot can change gift receiving settings of the business account.
|
|
bool | can_delete_all_messages_ |
| | True, if the bot can delete any message.
|
|
bool | can_delete_sent_messages_ |
| | True, if the bot can delete sent messages.
|
|
bool | can_edit_bio_ |
| | True, if the bot can edit bio of the business account.
|
|
bool | can_edit_name_ |
| | True, if the bot can edit name 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_manage_stories_ |
| | True, if the bot can post, edit and delete stories.
|
|
bool | can_read_messages_ |
| | True, if the bot can mark incoming private messages as read.
|
|
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_sell_gifts_ |
| | True, if the bot can sell regular gifts received by 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_view_gifts_and_stars_ |
| | True, if the bot can view gifts and Telegram Star amount owned by the business account.
|
|
|
static const std::int32_t | ID = 1224839038 |
| | Identifier uniquely determining a type of the object.
|
◆ businessBotRights() [1/2]
Describes rights of a business bot.
◆ businessBotRights() [2/2]
| 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.
- Parameters
-
| [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 Telegram Star amount 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. |
◆ store()
| void store |
( |
TlStorerToString & | s, |
|
|
const char * | field_name ) const |
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
- Parameters
-
| [in] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements TlObject.
The documentation for this class was generated from the following file: