Interface SendWebAppData

Sends data received from a keyboardButtonTypeWebApp Web App to a bot. Request type for Tdjson#sendWebAppData.

interface SendWebAppData {
    @type: "sendWebAppData";
    bot_user_id: number;
    button_text: string;
    data: string;
}

Properties

@type: "sendWebAppData"
bot_user_id: number

Identifier of the target bot.

button_text: string

Text of the keyboardButtonTypeWebApp button, which opened the Web App.

data: string

The data.