Module

x/grammy_types/settings.ts>MenuButtonWebApp

Type declarations of the Telegram Bot API.
Latest
interface MenuButtonWebApp
import { type MenuButtonWebApp } from "https://dotland.deno.dev/x/grammy_types@v3.15.0/settings.ts";

Represents a menu button, which launches a Web App.

Properties

type: "web_app"

Button type, must be web_app

text: string

Text on the button

web_app: WebAppInfo

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 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.