Layer 220
BusinessBotRights
Business bot rights.
constructor
businessBotRights#a0624cf7 flags:# reply:flags.0?true read_messages:flags.1?true delete_sent_messages:flags.2?true delete_received_messages:flags.3?true edit_name:flags.4?true edit_bio:flags.5?true edit_profile_photo:flags.6?true edit_username:flags.7?true view_gifts:flags.8?true sell_gifts:flags.9?true change_gift_settings:flags.10?true transfer_and_upgrade_gifts:flags.11?true transfer_stars:flags.12?true manage_stories:flags.13?true = BusinessBotRights;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Reply | flags.0?true | Whether the bot can send and edit messages in private chats that had incoming messages in the last 24 hours. |
| ReadMessages | flags.1?true | Whether the bot can mark incoming private messages as read. |
| DeleteSentMessages | flags.2?true | Whether the bot can delete messages sent by the bot. |
| DeleteReceivedMessages | flags.3?true | Whether the bot can delete received private messages in managed chats. |
| EditName | flags.4?true | Whether the bot can edit the first and last name of the business account. |
| EditBio | flags.5?true | Whether the bot can edit the bio of the business account. |
| EditProfilePhoto | flags.6?true | Whether the bot can edit the profile photo of the business account. |
| EditUsername | flags.7?true | Whether the bot can edit the username of the business account. |
| ViewGifts | flags.8?true | Whether the bot can view gifts and the amount of Telegram Stars owned by the business account. |
| SellGifts | flags.9?true | Whether the bot can convert regular gifts owned by the business account to Telegram Stars. |
| ChangeGiftSettings | flags.10?true | Whether the bot can change the privacy settings pertaining to gifts for the business account. |
| TransferAndUpgradeGifts | flags.11?true | Whether the bot can transfer and upgrade gifts owned by the business account. |
| TransferStars | flags.12?true | Whether the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts. |
| ManageStories | flags.13?true | Whether the bot can post, edit and delete stories on behalf of the business account. |
Returns
BusinessBotRightsGogram Example
// Creating BusinessBotRights constructor obj := &tg.BusinessBotRights{ // Optional fields: // Reply: true, // ReadMessages: true, // DeleteSentMessages: true, // DeleteReceivedMessages: true, // ... more optional fields }