WebAppData Class
extends BaseContains data sent from a Web App to the bot
Properties
buttonText: string
client: Client
data: string
Methods
{ "id": 1967, "name": "WebAppData", "variant": "declaration", "kind": 128, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Contains data sent from a Web App to the bot" } ] }, "children": [ { "id": 1968, "name": "constructor", "variant": "declaration", "kind": 512, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/WebAppData.ts", "line": 15, "character": 1 } ], "signatures": [ { "id": 1969, "name": "new WebAppData", "variant": "signature", "kind": 16384, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/WebAppData.ts", "line": 15, "character": 1 } ], "parameters": [ { "id": 1970, "name": "client", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" } }, { "id": 1971, "name": "data", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "reference", "target": 1967, "name": "WebAppData", "package": "tgkit", "qualifiedName": "default" }, "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } } ], "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } }, { "id": 1973, "name": "buttonText", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Text of the *WebApp* keyboard button from which the Web App was opened.\nBe aware that a bad client can send arbitrary data in this field." } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/WebAppData.ts", "line": 13, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 1974, "name": "client", "variant": "declaration", "kind": 1024, "flags": { "isInherited": true }, "sources": [ { "fileName": "packages/tgkit/src/structures/Base.ts", "line": 4, "character": 1 } ], "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" }, "inheritedFrom": { "type": "reference", "target": -1, "name": "Base.client" } }, { "id": 1972, "name": "data", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The data. Be aware that a bad client can send arbitrary data in this field." } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/WebAppData.ts", "line": 7, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Constructors", "children": [ 1968 ] }, { "title": "Properties", "children": [ 1973, 1974, 1972 ] } ], "sources": [ { "fileName": "packages/tgkit/src/structures/WebAppData.ts", "line": 5, "character": 21 } ], "extendedTypes": [ { "type": "reference", "target": { "sourceFileName": "packages/tgkit/src/structures/Base.ts", "qualifiedName": "default" }, "name": "default", "package": "tgkit" } ] }