List of all members | Public Fields | Public Instance Methods | Static Public Attributes
businessBotRights Class Referencefinal

Inherits Object.

Description

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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = 1224839038
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ 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 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.

Method Documentation

◆ 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]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: