Skip to content

export Function

WebApp

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.

Constructor

ts
 ReplyButton.WebApp( text, url )
ParameterTypeDescription
textstringLabel text on the button.
urlstringAn HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps.

Return: ReplyButtonPayload

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.