starsSubscription #

Represents a Telegram Star subscription ».

Layer 223

starsSubscription#2e6eab1a flags:# canceled:flags.0?true can_refulfill:flags.1?true missing_balance:flags.2?true bot_canceled:flags.7?true id:string peer:Peer until_date:int pricing:StarsSubscriptionPricing chat_invite_hash:flags.3?string title:flags.4?string photo:flags.5?WebDocument invoice_slug:flags.6?string = StarsSubscription;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
canceledflags.0?trueWhether this subscription was cancelled.
can_refulfillflags.1?trueWhether we left the associated private channel, but we can still rejoin it using payments.fulfillStarsSubscription because the current subscription period hasn't expired yet.
missing_balanceflags.2?trueWhether this subscription has expired because there are not enough stars on the user's balance to extend it.
bot_canceledflags.7?trueSet if this bot subscription was cancelled by the bot
idstringSubscription ID.
peerPeerIdentifier of the associated private chat.
until_dateintExpiration date of the current subscription period.
pricingStarsSubscriptionPricingPricing of the subscription in Telegram Stars.
chat_invite_hashflags.3?stringInvitation link, used to renew the subscription after cancellation or expiration.
titleflags.4?stringFor bot subscriptions, the title of the subscription invoice
photoflags.5?WebDocumentFor bot subscriptions, the photo from the subscription invoice
invoice_slugflags.6?stringFor bot subscriptions, the identifier of the subscription invoice

Type #

StarsSubscription

payments.fulfillStarsSubscription #

Re-join a private channel associated to an active Telegram Star subscription ».

Star subscriptions #

Bots and channels may create subscriptions, periodically charging users a certain amount of Telegram Stars in exchange for content and services.

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.

Chats and channels may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.