Raw.messages.SendWebViewData

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.TypeInputUser

    Bot that owns the web app

  • randomId : bigint

    Unique client message id to prevent duplicate sending of the same event

  • buttonText : string

    Text of the keyboardbuttonsimplewebview that was pressed to open the web app.

  • data : string

    Data to relay to the bot, obtained from a webAppDataSend js event.

Results

Raw.TypeUpdates