Skip to main content

payments.starsStatus

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

type tg.PaymentsStarsStatus struct { /* ... */ }

Fields​

NameTypeRequiredDescription
BalanceStarsAmountClassyesCurrent Telegram Star balance.
Subscriptions[]StarsSubscription—Info about current Telegram Star subscriptions, only returned when invoking payments getStarsTransactions and payments.getStarsSubscriptions.
SubscriptionsNextOffsetstring—Offset for pagination of subscriptions: only usable and returned when invoking payments.getStarsSubscriptions.
SubscriptionsMissingBalanceint64—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).
NextOffsetstring—Offset to use to fetch more transactions from the transaction history using payments getStarsTransactions.
Chats[]ChatClassyesChats mentioned in history.
Users[]UserClassyesUsers mentioned in history.

Returned by​

References​