Link Search Menu Expand Document

Method: messages.requestWebView

Back to methods index

Parameters:

NameTypeRequired
from_bot_menuBoolOptional
silentBoolOptional
peerUsername, chat ID, Update, Message or InputPeerOptional
botUsername, chat ID, Update, Message or InputUserOptional
urlstringOptional
start_paramstringOptional
theme_paramsDataJSONOptional
platformstringYes
reply_to_msg_idintOptional
send_asUsername, chat ID, Update, Message or InputPeerOptional

Return type: WebViewResult

Can bots use this method: NO

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();

// PHP 8+ syntax, use an array on PHP 7.
$WebViewResult = $MadelineProto->messages->requestWebView(from_bot_menu: Bool, silent: Bool, peer: InputPeer, bot: InputUser, url: 'string', start_param: 'string', theme_params: DataJSON, platform: 'string', reply_to_msg_id: int, send_as: InputPeer, );