UNPKG

typescript-telegram-bot-api

Version:

Telegram Bot API wrapper for Node.js written in TypeScript

17 lines (16 loc) 468 B
/** * ## WebAppData * Describes data sent from a Web App to the bot. * @see https://core.telegram.org/bots/api#webappdata */ export type WebAppData = { /** * The data. Be aware that a bad client can send arbitrary data in this field. */ data: string; /** * 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. */ button_text: string; };