GramIO API Reference / @gramio/contexts/dist / WriteAccessAllowed
Class: WriteAccessAllowed
Defined in: contexts/index.d.ts:2383
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:2385
Parameters
| Parameter | Type |
|---|---|
payload | TelegramWriteAccessAllowed |
Returns
WriteAccessAllowed
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramWriteAccessAllowed | contexts/index.d.ts:2384 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:2387
Returns
string
fromAttachmentMenu
Get Signature
get fromAttachmentMenu():
string
Defined in: contexts/index.d.ts:2393
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:2389
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:2391
Name of the Web App which was launched from a link
Returns
string