Method: messages.getPreparedInlineMessage
Obtain a prepared inline message generated by a mini app: invoked when handling web_app_send_prepared_message events
Parameters:
Name | Type | Description | Required |
---|---|---|---|
bot | Username, chat ID, Update, Message or InputUser | The bot that owns the mini app that emitted the web_app_send_prepared_message event | Optional |
id | string | The id from the web_app_send_prepared_message event | Optional |
Return type: messages.PreparedInlineMessage
Can userbots use this method: YES
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();
$messages_PreparedInlineMessage = $MadelineProto->messages->getPreparedInlineMessage(bot: $InputUser, id: 'string', );