|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
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. | |
Represents the rights of a business bot. https://core.telegram.org/bots/api#businessbotrights.
Definition at line 8 of file BusinessBotRights.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file BusinessBotRights.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 78 of file BusinessBotRights.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 58 of file BusinessBotRights.hpp.
| 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.
| 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.
| 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.
| bool tgbotxx::BusinessBotRights::canDeleteSentMessages {} |
Optional. True, if the bot can delete messages sent by the bot.
Definition at line 21 of file BusinessBotRights.hpp.
| 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.
| 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.
| 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.
| 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.
| 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.
| bool tgbotxx::BusinessBotRights::canReadMessages {} |
Optional. True, if the bot can mark incoming private messages as read.
Definition at line 18 of file BusinessBotRights.hpp.
| 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.
| 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.
| 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.
| 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.