Method: payments.getStarsSubscriptions
Obtain a list of active, expired or cancelled Telegram Star subscriptions ».
Parameters:
Name | Type | Description | Required |
---|---|---|---|
missing_balance | Bool | Whether to return only subscriptions expired due to an excessively low Telegram Star balance. | Optional |
peer | Username, chat ID, Update, Message or InputPeer | Always pass inputPeerSelf. | Optional |
offset | string | Offset for pagination, taken from payments.starsStatus.subscriptions_next_offset . | Optional |
Return type: payments.StarsStatus
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();
$payments_StarsStatus = $MadelineProto->payments->getStarsSubscriptions(missing_balance: $Bool, peer: $InputPeer, offset: 'string', );