Skip to main content

starsSubscription

Represents a Telegram Star subscription ».

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

Fields​

NameTypeRequiredDescription
Canceledbool—Whether this subscription was cancelled.
CanRefulfillbool—Whether we left the associated private channel, but we can still rejoin it using payments.fulfillStarsSubscription because the current subscription period hasn't expired yet.
MissingBalancebool—Whether this subscription has expired because there are not enough stars on the user's balance to extend it.
BotCanceledbool—Set if this bot subscription was cancelled by the bot
IDstringyesSubscription ID.
PeerPeerClassyesIdentifier of the associated private chat.
UntilDateintyesExpiration date of the current subscription period.
PricingStarsSubscriptionPricingyesPricing of the subscription in Telegram Stars.
ChatInviteHashstring—Invitation link, used to renew the subscription after cancellation or expiration.
Titlestring—For bot subscriptions, the title of the subscription invoice
PhotoWebDocumentClass—For bot subscriptions, the photo from the subscription invoice
InvoiceSlugstring—For bot subscriptions, the identifier of the subscription invoice

References​