Method: messages.getExtendedMedia
Fetch updated information about paid media, see here » for the full flow.
This method will return an array of updateMessageExtendedMedia updates, only for messages containing already bought paid media.
No information will be returned for messages containing not yet bought paid media.
Parameters:
Name | Type | Description | Required |
---|---|---|---|
peer | Username, chat ID, Update, Message or InputPeer | Peer with visible paid media messages. | Optional |
id | Array of int | IDs of currently visible messages containing paid media. | Yes |
Return type: Updates
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();
$Updates = $MadelineProto->messages->getExtendedMedia(peer: $InputPeer, id: [$int, $int], );