starsSubscription
Represents a Telegram Star subscription ».
type tg.StarsSubscription struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Canceled | bool | — | Whether this subscription was cancelled. |
CanRefulfill | bool | — | 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. |
MissingBalance | bool | — | Whether this subscription has expired because there are not enough stars on the user's balance to extend it. |
BotCanceled | bool | — | Set if this bot subscription was cancelled by the bot |
ID | string | yes | Subscription ID. |
Peer | PeerClass | yes | Identifier of the associated private chat. |
UntilDate | int | yes | Expiration date of the current subscription period. |
Pricing | StarsSubscriptionPricing | yes | Pricing of the subscription in Telegram Stars. |
ChatInviteHash | string | — | Invitation link, used to renew the subscription after cancellation or expiration. |
Title | string | — | For bot subscriptions, the title of the subscription invoice |
Photo | WebDocumentClass | — | For bot subscriptions, the photo from the subscription invoice |
InvoiceSlug | string | — | For bot subscriptions, the identifier of the subscription invoice |
References
- Official documentation
- Generated Go reference
- TL definition:
starsSubscription#2e6eab1a