StaticGramBot API

MenuButtonWebApp

Represents a menu button, which launches a Web App.

Поля

typeString
Type of the button, must be web_app
textString
Text on the button
Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Alternatively, a t.me link to a Web App of the bot can be specified in the object instead of the Web App's URL, in which case the Web App will be opened as if the user pressed the link.

Минимальный JSON

JSON
{
  "type": "private",
  "text": "...",
  "web_app": {
    "url": "..."
  }
}

Где используется

Типы

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top