GramIO API Reference / @gramio/contexts/dist / WebAppData
Class: WebAppData
Defined in: contexts/index.d.ts:2980
Contains data sent from a Web App to the bot.
Constructors
Constructor
new WebAppData(
payload):WebAppData
Defined in: contexts/index.d.ts:2982
Parameters
| Parameter | Type |
|---|---|
payload | TelegramWebAppData |
Returns
WebAppData
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramWebAppData | contexts/index.d.ts:2981 |
Accessors
buttonText
Get Signature
get buttonText():
string
Defined in: contexts/index.d.ts:2989
Text of the web_app keyboard button, from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field.
Returns
string
data
Get Signature
get data():
string
Defined in: contexts/index.d.ts:2984
The data. Be aware that a bad client can send arbitrary data in this field.
Returns
string