Link Search Menu Expand Document

Method: messages.getExtendedMedia

Back to methods index

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:

NameTypeDescriptionRequired
peerUsername, chat ID, Update, Message or InputPeerPeer with visible paid media messages.Optional
idArray of intIDs 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], );