WebViewResultUrl

class pyrogram.raw.types.WebViewResultUrl

Contains the webview URL with appropriate theme and user info parameters added

Constructor of WebViewResult.

Details:
  • Layer: 223

  • ID: 4D22FF98

Parameters:
  • url (str) – Webview URL to open

  • fullsize (bool, optional) – If set, the app must be opened in fullsize mode instead of compact mode.

  • fullscreen (bool, optional) – If set, the app must be opened in fullscreen

  • query_id (int 64-bit, optional) – Webview session ID (only returned by inline button mini apps, menu button mini apps, attachment menu mini apps).

Functions:

This object can be returned by 4 functions.

messages.RequestWebView

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

messages.RequestSimpleWebView

Open a bot mini app.

messages.RequestAppWebView

Open a bot mini app from a direct Mini App deep link, sending over user information after user confirmation.

messages.RequestMainWebView

Open a Main Mini App.

TL Schema

webViewResultUrl#4d22ff98
flags:#
fullsize:flags.1?true
fullscreen:flags.2?true
query_id:flags.0?long
url:string

= WebViewResult

Parameter Tree

WebViewResultUrl
├── fullsizetrue (optional)
├── fullscreentrue (optional)
├── query_idlong (optional)
└── urlstring

Example

WebViewResultUrl(
    url="https://google.com",
)