tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::BusinessBotRights Struct Reference

Represents the rights of a business bot. https://core.telegram.org/bots/api#businessbotrights. More...

#include <BusinessBotRights.hpp>

Public Member Functions

 BusinessBotRights ()=default
 
 BusinessBotRights (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON.
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON.
 

Public Attributes

bool canReply {}
 Optional. True, if the bot can send and edit messages in private chats that had incoming messages in the last 24 hours.
 
bool canReadMessages {}
 Optional. True, if the bot can mark incoming private messages as read.
 
bool canDeleteSentMessages {}
 Optional. True, if the bot can delete messages sent by the bot.
 
bool canDeleteAllMessages {}
 Optional. True, if the bot can delete all private messages in managed chats.
 
bool canEditName {}
 Optional. True, if the bot can edit the first and last name of the business account.
 
bool canEditBio {}
 Optional. True, if the bot can edit the bio of the business account.
 
bool canEditProfilePhoto {}
 Optional. True, if the bot can edit the profile photo of the business account.
 
bool canEditUsername {}
 Optional. True, if the bot can edit the username of the business account.
 
bool canChangeGiftSettings {}
 Optional. True, if the bot can change the privacy settings pertaining to gifts for the business account.
 
bool canViewGiftsAndStars {}
 Optional. True, if the bot can view gifts and the amount of Telegram Stars owned by the business account.
 
bool canConvertGiftsToStars {}
 Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars.
 
bool canTransferAndUpgradeGifts {}
 Optional. True, if the bot can transfer and upgrade gifts owned by the business account.
 
bool canTransferStars {}
 Optional. True, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts.
 
bool canManageStories {}
 Optional. True, if the bot can post, edit, and delete stories on behalf of the business account.
 

Detailed Description

Represents the rights of a business bot. https://core.telegram.org/bots/api#businessbotrights.

Definition at line 8 of file BusinessBotRights.hpp.

Constructor & Destructor Documentation

◆ BusinessBotRights() [1/2]

tgbotxx::BusinessBotRights::BusinessBotRights ( )
default

◆ BusinessBotRights() [2/2]

tgbotxx::BusinessBotRights::BusinessBotRights ( const nl::json &  json)
inlineexplicit

Definition at line 10 of file BusinessBotRights.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::BusinessBotRights::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 78 of file BusinessBotRights.hpp.

◆ toJson()

nl::json tgbotxx::BusinessBotRights::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 58 of file BusinessBotRights.hpp.

Member Data Documentation

◆ canChangeGiftSettings

bool tgbotxx::BusinessBotRights::canChangeGiftSettings {}

Optional. True, if the bot can change the privacy settings pertaining to gifts for the business account.

Definition at line 39 of file BusinessBotRights.hpp.

◆ canConvertGiftsToStars

bool tgbotxx::BusinessBotRights::canConvertGiftsToStars {}

Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars.

Definition at line 45 of file BusinessBotRights.hpp.

◆ canDeleteAllMessages

bool tgbotxx::BusinessBotRights::canDeleteAllMessages {}

Optional. True, if the bot can delete all private messages in managed chats.

Definition at line 24 of file BusinessBotRights.hpp.

◆ canDeleteSentMessages

bool tgbotxx::BusinessBotRights::canDeleteSentMessages {}

Optional. True, if the bot can delete messages sent by the bot.

Definition at line 21 of file BusinessBotRights.hpp.

◆ canEditBio

bool tgbotxx::BusinessBotRights::canEditBio {}

Optional. True, if the bot can edit the bio of the business account.

Definition at line 30 of file BusinessBotRights.hpp.

◆ canEditName

bool tgbotxx::BusinessBotRights::canEditName {}

Optional. True, if the bot can edit the first and last name of the business account.

Definition at line 27 of file BusinessBotRights.hpp.

◆ canEditProfilePhoto

bool tgbotxx::BusinessBotRights::canEditProfilePhoto {}

Optional. True, if the bot can edit the profile photo of the business account.

Definition at line 33 of file BusinessBotRights.hpp.

◆ canEditUsername

bool tgbotxx::BusinessBotRights::canEditUsername {}

Optional. True, if the bot can edit the username of the business account.

Definition at line 36 of file BusinessBotRights.hpp.

◆ canManageStories

bool tgbotxx::BusinessBotRights::canManageStories {}

Optional. True, if the bot can post, edit, and delete stories on behalf of the business account.

Definition at line 54 of file BusinessBotRights.hpp.

◆ canReadMessages

bool tgbotxx::BusinessBotRights::canReadMessages {}

Optional. True, if the bot can mark incoming private messages as read.

Definition at line 18 of file BusinessBotRights.hpp.

◆ canReply

bool tgbotxx::BusinessBotRights::canReply {}

Optional. True, if the bot can send and edit messages in private chats that had incoming messages in the last 24 hours.

Definition at line 15 of file BusinessBotRights.hpp.

◆ canTransferAndUpgradeGifts

bool tgbotxx::BusinessBotRights::canTransferAndUpgradeGifts {}

Optional. True, if the bot can transfer and upgrade gifts owned by the business account.

Definition at line 48 of file BusinessBotRights.hpp.

◆ canTransferStars

bool tgbotxx::BusinessBotRights::canTransferStars {}

Optional. True, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts.

Definition at line 51 of file BusinessBotRights.hpp.

◆ canViewGiftsAndStars

bool tgbotxx::BusinessBotRights::canViewGiftsAndStars {}

Optional. True, if the bot can view gifts and the amount of Telegram Stars owned by the business account.

Definition at line 42 of file BusinessBotRights.hpp.


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