payments.getStarsSubscriptions #

Obtain a list of active, expired or cancelled Telegram Star subscriptions ».

Layer 223

payments.starsStatus#6c9ce8ed flags:# balance:StarsAmount subscriptions:flags.1?Vector<StarsSubscription> subscriptions_next_offset:flags.2?string subscriptions_missing_balance:flags.4?long history:flags.3?Vector<StarsTransaction> next_offset:flags.0?string chats:Vector<Chat> users:Vector<User> = payments.StarsStatus;
---functions---
payments.getStarsSubscriptions#32512c5 flags:# missing_balance:flags.0?true peer:InputPeer offset:string = payments.StarsStatus;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
missing_balanceflags.0?trueWhether to return only subscriptions expired due to an excessively low Telegram Star balance.
peerInputPeerAlways pass inputPeerSelf.
offsetstringOffset for pagination, taken from payments.starsStatus.subscriptions_next_offset.

Result #

payments.StarsStatus

Only users can use this method #

Possible errors #

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

inputPeerSelf #

Defines the current user.

payments.starsStatus #

Info about the current Telegram Star subscriptions, balance and transaction history ».

Chats and channels may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.