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[]StarsSubscriptionInfo about current Telegram Star subscriptions, only returned when invoking payments getStarsTransactions and payments.getStarsSubscriptions.
SubscriptionsNextOffsetstringOffset for pagination of subscriptions: only usable and returned when invoking payments.getStarsSubscriptions.
SubscriptionsMissingBalanceint64The 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[]StarsTransactionList of Telegram Star transactions (partial if next_offset is set).
NextOffsetstringOffset 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