Skip to content

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

Class: WebAppData

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

Contains data sent from a Web App to the bot.

Constructors

Constructor

new WebAppData(payload): WebAppData

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

Parameters

ParameterType
payloadTelegramWebAppData

Returns

WebAppData

Properties

PropertyTypeDefined in
payloadTelegramWebAppDatacontexts/index.d.ts:2371

Accessors

buttonText

Get Signature

get buttonText(): string

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

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:2374

The data. Be aware that a bad client can send arbitrary data in this field.

Returns

string