payments.starsStatus
Info about the current Telegram Star subscriptions, balance and transaction history ».
type tg.PaymentsStarsStatus struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Balance | StarsAmountClass | yes | Current Telegram Star balance. |
Subscriptions | []StarsSubscription | — | Info about current Telegram Star subscriptions, only returned when invoking payments getStarsTransactions and payments.getStarsSubscriptions. |
SubscriptionsNextOffset | string | — | Offset for pagination of subscriptions: only usable and returned when invoking payments.getStarsSubscriptions. |
SubscriptionsMissingBalance | int64 | — | 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 | []StarsTransaction | — | List of Telegram Star transactions (partial if next_offset is set). |
NextOffset | string | — | Offset to use to fetch more transactions from the transaction history using payments getStarsTransactions. |
Chats | []ChatClass | yes | Chats mentioned in history. |
Users | []UserClass | yes | Users mentioned in history. |
Returned by
payments.getStarsStatuspayments.getStarsSubscriptionspayments.getStarsTransactionspayments.getStarsTransactionsByID
References
- Official documentation
- Generated Go reference
- TL definition:
payments.starsStatus#6c9ce8ed