messages.RequestWebView¶
- class pyrogram.raw.functions.messages.RequestWebView[source]¶
Open a bot mini app, sending over user information after user confirmation.
Usable by Users Bots- Details:
Layer:
229ID:
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 » ).platform (
str) – Short name of the application; 0-64 English letters, digits, and underscoresfrom_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) – If set, requests to open the mini app in compact mode (as opposed to normal or fullscreen mode). Must be set if themodeparameter of the attachment menu deep link is equal tocompact.fullscreen (
bool, optional) – If set, requests to open the mini app in fullscreen mode (as opposed to normal or compact mode). Must be set if themodeparameter of the attachment menu deep link is equal tofullscreen.url (
str, optional) – Web app URLstart_param (
str, optional) – If the web app was opened from the attachment menu using a attachment menu deep link,start_paramshould contain thedatafrom thestartattachparameter.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: