Method: payments.getResaleStarGifts
Parameters:
Name | Type | Required |
---|---|---|
sort_by_price | Bool | Optional |
sort_by_num | Bool | Optional |
attributes_hash | long | Optional |
gift_id | long | Yes |
attributes | Array of StarGiftAttributeId | Optional |
offset | string | Optional |
limit | int | Optional |
Return type: payments.ResaleStarGifts
Can userbots use this method: YES
Can bots use this method: YES
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_ResaleStarGifts = $MadelineProto->payments->getResaleStarGifts(sort_by_price: $Bool, sort_by_num: $Bool, attributes_hash: $long, gift_id: $long, attributes: [$StarGiftAttributeId, $StarGiftAttributeId], offset: 'string', limit: $int, );