tgbot-cpp
Loading...
Searching...
No Matches
TgBot::BusinessBotRights Struct Reference

Represents the rights of a business bot. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<BusinessBotRights>

Public Attributes

std::optional< bool > canReply { }
 Optional. True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours.
std::optional< bool > canReadMessages { }
 Optional. True, if the bot can mark incoming private messages as read.
std::optional< bool > canDeleteSentMessages { }
 Optional. True, if the bot can delete messages sent by the bot.
std::optional< bool > canDeleteAllMessages { }
 Optional. True, if the bot can delete all private messages in managed chats.
std::optional< bool > canEditName { }
 Optional. True, if the bot can edit the first and last name of the business account.
std::optional< bool > canEditBio { }
 Optional. True, if the bot can edit the bio of the business account.
std::optional< bool > canEditProfilePhoto { }
 Optional. True, if the bot can edit the profile photo of the business account.
std::optional< bool > canEditUsername { }
 Optional. True, if the bot can edit the username of the business account.
std::optional< bool > canChangeGiftSettings { }
 Optional. True, if the bot can change the privacy settings pertaining to gifts for the business account.
std::optional< bool > canViewGiftsAndStars { }
 Optional. True, if the bot can view gifts and the amount of Telegram Stars owned by the business account.
std::optional< bool > canConvertGiftsToStars { }
 Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars.
std::optional< bool > canTransferAndUpgradeGifts { }
 Optional. True, if the bot can transfer and upgrade gifts owned by the business account.
std::optional< 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.
std::optional< 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.

Definition at line 1140 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 1141 of file Types.h.

Member Data Documentation

◆ canChangeGiftSettings

std::optional<bool> TgBot::BusinessBotRights::canChangeGiftSettings { }

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

Definition at line 1180 of file Types.h.

◆ canConvertGiftsToStars

std::optional<bool> TgBot::BusinessBotRights::canConvertGiftsToStars { }

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

Definition at line 1190 of file Types.h.

◆ canDeleteAllMessages

std::optional<bool> TgBot::BusinessBotRights::canDeleteAllMessages { }

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

Definition at line 1159 of file Types.h.

◆ canDeleteSentMessages

std::optional<bool> TgBot::BusinessBotRights::canDeleteSentMessages { }

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

Definition at line 1155 of file Types.h.

◆ canEditBio

std::optional<bool> TgBot::BusinessBotRights::canEditBio { }

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

Definition at line 1167 of file Types.h.

◆ canEditName

std::optional<bool> TgBot::BusinessBotRights::canEditName { }

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

Definition at line 1163 of file Types.h.

◆ canEditProfilePhoto

std::optional<bool> TgBot::BusinessBotRights::canEditProfilePhoto { }

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

Definition at line 1171 of file Types.h.

◆ canEditUsername

std::optional<bool> TgBot::BusinessBotRights::canEditUsername { }

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

Definition at line 1175 of file Types.h.

◆ canManageStories

std::optional<bool> TgBot::BusinessBotRights::canManageStories { }

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

Definition at line 1204 of file Types.h.

◆ canReadMessages

std::optional<bool> TgBot::BusinessBotRights::canReadMessages { }

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

Definition at line 1151 of file Types.h.

◆ canReply

std::optional<bool> TgBot::BusinessBotRights::canReply { }

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

Definition at line 1147 of file Types.h.

◆ canTransferAndUpgradeGifts

std::optional<bool> TgBot::BusinessBotRights::canTransferAndUpgradeGifts { }

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

Definition at line 1194 of file Types.h.

◆ canTransferStars

std::optional<bool> TgBot::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 1199 of file Types.h.

◆ canViewGiftsAndStars

std::optional<bool> TgBot::BusinessBotRights::canViewGiftsAndStars { }

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

Definition at line 1185 of file Types.h.


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