Skip to content

GramIO API Reference / @gramio/contexts/dist / BusinessBotRights

Class: BusinessBotRights

Defined in: contexts/index.d.ts:1219

Represents the rights of a business bot.

Documentation

Constructors

Constructor

new BusinessBotRights(payload): BusinessBotRights

Defined in: contexts/index.d.ts:1221

Parameters

ParameterType
payloadTelegramBusinessBotRights

Returns

BusinessBotRights

Properties

PropertyTypeDefined in
payloadTelegramBusinessBotRightscontexts/index.d.ts:1220

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:1223

MDN

Returns

string


canChangeGiftSettings

Get Signature

get canChangeGiftSettings(): boolean

Defined in: contexts/index.d.ts:1264

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

Returns

boolean


canConvertGiftsToStars

Get Signature

get canConvertGiftsToStars(): boolean

Defined in: contexts/index.d.ts:1272

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

Returns

boolean


canDeleteAllMessages

Get Signature

get canDeleteAllMessages(): boolean

Defined in: contexts/index.d.ts:1244

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

Returns

boolean


canDeleteOutgoingMessages

Get Signature

get canDeleteOutgoingMessages(): boolean

Defined in: contexts/index.d.ts:1236

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

Deprecated

Use canDeleteSentMessages instead

Returns

boolean


canDeleteSentMessages

Get Signature

get canDeleteSentMessages(): boolean

Defined in: contexts/index.d.ts:1240

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

Returns

boolean


canEditBio

Get Signature

get canEditBio(): boolean

Defined in: contexts/index.d.ts:1252

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

Returns

boolean


canEditName

Get Signature

get canEditName(): boolean

Defined in: contexts/index.d.ts:1248

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

Returns

boolean


canEditProfilePhoto

Get Signature

get canEditProfilePhoto(): boolean

Defined in: contexts/index.d.ts:1256

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

Returns

boolean


canEditUsername

Get Signature

get canEditUsername(): boolean

Defined in: contexts/index.d.ts:1260

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

Returns

boolean


canManageStories

Get Signature

get canManageStories(): boolean

Defined in: contexts/index.d.ts:1284

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

Returns

boolean


canReadMessages

Get Signature

get canReadMessages(): boolean

Defined in: contexts/index.d.ts:1231

True, if the bot can read messages in the private chats that had incoming messages in the last 24 hours

Returns

boolean


canReply

Get Signature

get canReply(): boolean

Defined in: contexts/index.d.ts:1227

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

Returns

boolean


canTransferAndUpgradeGifts

Get Signature

get canTransferAndUpgradeGifts(): boolean

Defined in: contexts/index.d.ts:1276

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

Returns

boolean


canTransferStars

Get Signature

get canTransferStars(): boolean

Defined in: contexts/index.d.ts:1280

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

Returns

boolean


canViewGiftsAndStars

Get Signature

get canViewGiftsAndStars(): boolean

Defined in: contexts/index.d.ts:1268

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

Returns

boolean