Method: messages.requestAppWebView
Back to methods index
Open a
bot mini app
from a
direct Mini App deep link
, sending over user information after user confirmation.
After calling this method, until the user closes the webview,
messages.prolongWebView
must be called every 60 seconds.
Parameters:
Can bots use this method:
NO
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
();
$AppWebViewResult
=
$MadelineProto
->
messages
->
requestAppWebView
(
write_allowed
:
$Bool
,
peer
:
$InputPeer
,
app
:
$InputBotApp
,
start_param
:
'string'
,
theme_params
:
$DataJSON
,
platform
:
'string'
,
);