Raw.messages.RequestSimpleWebView

Raw.messages.RequestSimpleWebView

Open a bot mini app.

messages.requestSimpleWebView#413a3e73 flags:# from_switch_webview:flags.1?true from_side_menu:flags.2?true compact:flags.7?true bot:InputUser url:flags.3?string start_param:flags.4?string theme_params:flags.0?DataJSON platform:string = WebViewResult;
export namespace Raw {
  export namespace messages {
    export class RequestSimpleWebView {
      constructor(params: {
        fromSwitchWebview?: boolean;
        fromSideMenu?: boolean;
        compact?: boolean;
        bot: Raw.TypeInputUser;
        url?: string;
        startParam?: string;
        themeParams?: Raw.TypeDataJSON;
        platform: string;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0x413a3e73

Property

  • fromSwitchWebview : boolean or undefined

    Whether the webapp was opened by clicking on the switchWebview button shown on top of the inline results list returned by messages.getinlinebotresults.

  • fromSideMenu : boolean or undefined

    Set this flag if opening the mini app from the installed side menu entry or from a mini app link.

  • compact : boolean or undefined
  • bot : Raw.TypeInputUser

    Bot that owns the mini app

  • url : string or undefined

    Web app url, if opening from a keyboard button or inline result

  • startParam : string or undefined

    Start parameter, if opening from a mini app link.

  • themeParams : Raw.TypeDataJSON or undefined

    Theme parameters

  • platform : string

    Short name of the application; 0-64 english letters, digits, and underscores

Results

Raw.TypeWebViewResult