Link Search Menu Expand Document

Method: payments.getResaleStarGifts

Back to methods index

Parameters:

NameTypeRequired
sort_by_priceBoolOptional
sort_by_numBoolOptional
attributes_hashlongOptional
gift_idlongYes
attributesArray of StarGiftAttributeIdOptional
offsetstringOptional
limitintOptional

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, );