Layer 227
PaymentsStarsStatusObj
Info about the current Telegram Star subscriptions, balance and transaction history.
constructor
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;
Parameters
| Name | Type | Description |
|---|---|---|
| Balance | StarsAmount | Current Telegram Star balance. |
| Subscriptions | flags .1? Vector < StarsSubscription > | Info about current Telegram Star subscriptions, only returned when invoking payments. get Stars Transactions and payments. get Stars Subscriptions. |
| SubscriptionsNextOffset | flags .2? string | Offset for pagination of subscriptions: only usable and returned when invoking payments. get Stars Subscriptions. |
| SubscriptionsMissingBalance | flags .4? long | 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 | flags .3? Vector < StarsTransaction > | List of Telegram Star transactions (partial if next_offset is set). |
| NextOffset | flags .0? string | Offset to use to fetch more transactions from the transaction history using payments. get Stars Transactions. |
| Chats | Vector < Chat > | Chats mentioned in history. |
| Users | Vector < User > | Users mentioned in history. |
Returns
payments.StarsStatusGogram Example
// Creating PaymentsStarsStatusObj constructor obj := &tg.PaymentsStarsStatusObj{ Balance: &tg.StarsAmount{}, Subscriptions: nil, SubscriptionsNextOffset: "Hello, World!", SubscriptionsMissingBalance: nil, History: nil, NextOffset: "Hello, World!", // ... more required fields }