Skip to main content

starsSubscription

Represents a Telegram Star subscription ».

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

Fields

NameTypeRequiredDescription
CanceledboolWhether this subscription was cancelled.
CanRefulfillboolWhether we left the associated private channel, but we can still rejoin it using payments.fulfillStarsSubscription because the current subscription period hasn't expired yet.
MissingBalanceboolWhether this subscription has expired because there are not enough stars on the user's balance to extend it.
BotCanceledboolSet 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.
ChatInviteHashstringInvitation link, used to renew the subscription after cancellation or expiration.
TitlestringFor bot subscriptions, the title of the subscription invoice
PhotoWebDocumentClassFor bot subscriptions, the photo from the subscription invoice
InvoiceSlugstringFor bot subscriptions, the identifier of the subscription invoice

References