messages.RequestMainWebView#

class pyrogram.raw.functions.messages.RequestMainWebView#

Open a Main Mini App.

Details:
  • Layer: 198

  • ID: C9E01E7B

Parameters:
  • peer (InputPeer) – Currently open chat, may be inputPeerEmpty if no chat is currently open.

  • bot (InputUser) – Bot that owns the main mini app.

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

  • compact (bool, optional) – If set, requests to open the mini app in compact mode (as opposed to normal or fullscreen mode). Must be set if the mode parameter of the Main Mini App link is equal to compact.

  • fullscreen (bool, optional) – If set, requests to open the mini app in fullscreen mode (as opposed to compact or normal mode). Must be set if the mode parameter of the Main Mini App link is equal to fullscreen.

  • start_param (str, optional) – Start parameter, if opening from a Main Mini App link ».

  • theme_params (DataJSON, optional) – Theme parameters »

Returns:

WebViewResult