Constructor: payments.starsStatus
Info about the current Telegram Star subscriptions, balance and transaction history ».
Attributes:
Name | Type | Required | Description |
---|---|---|---|
balance | StarsAmount | Yes | Current Telegram Star balance. |
subscriptions | Array of StarsSubscription | Optional | Info about current Telegram Star subscriptions, only returned when invoking payments.getStarsTransactions and payments.getStarsSubscriptions. |
subscriptions_next_offset | string | Optional | Offset for pagination of subscriptions: only usable and returned when invoking payments.getStarsSubscriptions. |
subscriptions_missing_balance | long | Optional | The number of Telegram Stars the user should buy to be able to extend expired subscriptions soon (i.e. the current balance is not enough to extend all expired subscriptions). |
history | Array of StarsTransaction | Optional | List of Telegram Star transactions (partial if next_offset is set). |
next_offset | string | Optional | Offset to use to fetch more transactions from the transaction history using payments.getStarsTransactions. |
chats | Array of Chat | Yes | Chats mentioned in history . |
users | Array of User | Yes | Users mentioned in history . |
Type: payments.StarsStatus
Example:
$payments_starsStatus = ['_' => 'payments.starsStatus', 'balance' => StarsAmount, 'subscriptions' => [StarsSubscription, StarsSubscription], 'subscriptions_next_offset' => 'string', 'subscriptions_missing_balance' => long, 'history' => [StarsTransaction, StarsTransaction], 'next_offset' => 'string', 'chats' => [Chat, Chat], 'users' => [User, User]];