Method: payments.getSavedStarGift
Fetch info about specific gifts owned by a peer we control.
Note that unlike what the name suggests, the method can be used to fetch both “saved” and “unsaved” gifts (aka gifts both pinned and not pinned to the profile).
Parameters:
Name | Type | Description | Required |
---|---|---|---|
stargift | Array of InputSavedStarGift | List of gifts to fetch info about. | Yes |
Return type: payments.SavedStarGifts
Can users use this method: YES
Can bots use this method: NO
Can bots use this method over a business connection with the businessConnectionId
flag: 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();
$payments_SavedStarGifts = $MadelineProto->payments->getSavedStarGift(stargift: [$InputSavedStarGift, $InputSavedStarGift], );