Method: messages.requestSimpleWebView
Open a bot web app.
Parameters:
Name | Type | Description | Required |
---|---|---|---|
bot | Username, chat ID, Update, Message or InputUser | Bot that owns the webapp | Optional |
url | string | Web app URL | Yes |
theme_params | DataJSON | Theme parameters | Optional |
platform | string | Yes |
Return type: SimpleWebViewResult
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.
$SimpleWebViewResult = $MadelineProto->messages->requestSimpleWebView(bot: InputUser, url: 'string', theme_params: DataJSON, platform: 'string', );