Raw.messages.SendWebViewData
Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.
messages.sendWebViewData#dc0242c8 bot:InputUser random_id:long button_text:string data:string = Updates;
export namespace Raw {
export namespace messages {
export class SendWebViewData {
constructor(params: {
bot: Raw.TypeInputUser;
randomId: bigint;
buttonText: string;
data: string;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0xdc0242c8
Property
bot
: Raw.TypeInputUserBot that owns the web app
randomId
: bigintUnique client message id to prevent duplicate sending of the same event
buttonText
: stringText of the keyboardbuttonsimplewebview that was pressed to open the web app.
data
: stringData to relay to the bot, obtained from a webAppDataSend js event.