Skip to content

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

Class: WriteAccessAllowed ​

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

This object represents a service message about a user allowing a bot added to the attachment menu to write messages. Currently holds no information.

Constructors ​

Constructor ​

new WriteAccessAllowed(payload): WriteAccessAllowed

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

Parameters ​

ParameterType
payloadTelegramWriteAccessAllowed

Returns ​

WriteAccessAllowed

Properties ​

PropertyTypeDefined in
payloadTelegramWriteAccessAllowedcontexts/index.d.ts:3292

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string


fromAttachmentMenu ​

Get Signature ​

get fromAttachmentMenu(): string

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

true, if the access was granted when the bot was added to the attachment or side menu

Returns ​

string


fromRequest ​

Get Signature ​

get fromRequest(): boolean

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

true, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess

Returns ​

boolean


webAppName ​

Get Signature ​

get webAppName(): string

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

Name of the Web App which was launched from a link

Returns ​

string