messages.RequestWebView

class pyrogram.raw.functions.messages.RequestWebView

Open a bot mini app, sending over user information after user confirmation.

Details:
  • Layer: 187

  • ID: 269DC2C1

Parameters:
  • peer (InputPeer) – Dialog where the web app is being opened, and where the resulting message will be sent (see the docs for more info »).

  • bot (InputUser) – Bot that owns the web app

  • platform (str) – Short name of the application; 0-64 English letters, digits, and underscores

  • from_bot_menu (bool, optional) – Whether the webview was opened by clicking on the bot’s menu button ».

  • silent (bool, optional) – Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is terminated should be sent silently (no notifications for the receivers).

  • compact (bool, optional) – N/A

  • url (str, optional) – Web app URL

  • start_param (str, optional) – If the web app was opened from the attachment menu using a attachment menu deep link, start_param should contain the data from the startattach parameter.

  • theme_params (DataJSON, optional) – Theme parameters »

  • reply_to (InputReplyTo, optional) – If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is terminated should be sent in reply to the specified message or story.

  • send_as (InputPeer, optional) – Open the web app as the specified peer, sending the resulting the message as the specified peer.

Returns:

WebViewResult