Interface OpenWebApp

Informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. For each bot, a confirmation alert about data sent to the bot must be shown once. Request type for Tdjson#openWebApp.

interface OpenWebApp {
    @type: "openWebApp";
    bot_user_id: number;
    chat_id: number;
    message_thread_id: number;
    parameters: WebAppOpenParameters;
    reply_to: InputMessageReplyTo;
    url: string;
}

Properties

@type: "openWebApp"
bot_user_id: number

Identifier of the bot, providing the Web App.

chat_id: number

Identifier of the chat in which the Web App is opened. The Web App can't be opened in secret chats.

message_thread_id: number

If not 0, the message thread identifier in which the message will be sent.

Parameters to use to open the Web App.

Information about the message or story to be replied in the message sent by the Web App; pass null if none.

url: string

The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise.