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();
$StarGiftCollection = $MadelineProto->payments->updateStarGiftCollection(peer: $InputPeer, collection_id: $int, title: 'string', delete_stargift: [$InputSavedStarGift, $InputSavedStarGift], add_stargift: [$InputSavedStarGift, $InputSavedStarGift], order: [$InputSavedStarGift, $InputSavedStarGift], );