RequestMainWebViewRequest
Both users and bots may be able to use this request. See code examples.
---functions--- messages.requestMainWebView#c9e01e7b flags:# compact:flags.7?true fullscreen:flags.8?true peer:InputPeer bot:InputUser start_param:flags.1?string theme_params:flags.0?DataJSON platform:string = WebViewResult
Returns
| WebViewResult | 
This type can only be an instance of:
| WebViewResultUrl | 
Parameters
| peer | InputPeer | Anything entity-like will work if the library can find its Inputversion (e.g., usernames,Peer,UserorChannelobjects, etc.). | 
| bot | InputUser | Anything entity-like will work if the library can find its Inputversion (e.g., usernames,Peer,UserorChannelobjects, etc.). | 
| platform | string | |
| compact | flag | This argument defaults to Noneand can be omitted. | 
| fullscreen | flag | This argument defaults to Noneand can be omitted. | 
| start_param | string | This argument defaults to Noneand can be omitted. | 
| theme_params | DataJSON | This argument defaults to Noneand can be omitted. | 
Known RPC errors
This request can't cause any RPC error as far as we know.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.messages.RequestMainWebViewRequest(
        peer='username',
        bot='username',
        platform='some string here',
        compact=True,
        fullscreen=True,
        start_param='some string here',
        theme_params=types.DataJSON(
            data='some string here'
        )
    ))
    print(result.stringify())