interface WebAppButton {
    text: string;
    webApp: WebAppInfo;
}

Hierarchy (view full)

Properties

Properties

text: string

Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed

webApp: WebAppInfo

If specified, the described Web App will be launched when the button is pressed. The Web App will be able to send a “web_app_data” service message. Available in private chats only.