Layer 227
StarsSubscriptionObj
Represents a Telegram Star subscription.
constructor
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
| Name | Type | Description |
|---|---|---|
| Canceled | flags .0? true | Whether this subscription was cancelled. |
| CanRefulfill | flags .1? true | Whether we left the associated private channel, but we can still rejoin it using payments. fulfill Stars Subscription because the current subscription period hasn't expired yet. |
| MissingBalance | flags .2? true | Whether this subscription has expired because there are not enough stars on the user's balance to extend it. |
| BotCanceled | flags .7? true | Set if this bot subscription was cancelled by the bot |
| Id | string | Subscription ID. |
| Peer | Peer | Identifier of the associated private chat. |
| UntilDate | int | Expiration date of the current subscription period. |
| Pricing | StarsSubscriptionPricing | Pricing of the subscription in Telegram Stars. |
| ChatInviteHash | flags .3? string | Invitation link, used to renew the subscription after cancellation or expiration. |
| Title | flags .4? string | For bot subscriptions, the title of the subscription invoice |
| Photo | flags .5? WebDocument | For bot subscriptions, the photo from the subscription invoice |
| InvoiceSlug | flags .6? string | For bot subscriptions, the identifier of the subscription invoice |
Returns
StarsSubscriptionGogram Example
// Creating StarsSubscriptionObj constructor obj := &tg.StarsSubscriptionObj{ Canceled: nil, CanRefulfill: nil, MissingBalance: nil, BotCanceled: nil, Id: "Hello, World!", Peer: &tg.Peer{}, // ... more required fields }