Constructor: starsSubscription
Represents a Telegram Star subscription ».
Attributes:
Name | Type | Required | Description |
---|---|---|---|
canceled | Bool | Optional | Whether this subscription was cancelled. |
can_refulfill | Bool | Optional | 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. |
missing_balance | Bool | Optional | Whether this subscription has expired because there are not enough stars on the user’s balance to extend it. |
bot_canceled | Bool | Optional | Set if this bot subscription was cancelled by the bot |
id | string | Yes | Subscription ID. |
peer | long | Yes | Identifier of the associated private chat. |
until_date | int | Yes | Expiration date of the current subscription period. |
pricing | StarsSubscriptionPricing | Yes | Pricing of the subscription in Telegram Stars. |
chat_invite_hash | string | Optional | Invitation link, used to renew the subscription after cancellation or expiration. |
title | string | Optional | For bot subscriptions, the title of the subscription invoice |
photo | WebDocument | Optional | For bot subscriptions, the photo from the subscription invoice |
invoice_slug | string | Optional | For bot subscriptions, the identifier of the subscription invoice |
Type: StarsSubscription
Example:
$starsSubscription = ['_' => 'starsSubscription', 'canceled' => Bool, 'can_refulfill' => Bool, 'missing_balance' => Bool, 'bot_canceled' => Bool, 'id' => 'string', 'peer' => long, 'until_date' => int, 'pricing' => StarsSubscriptionPricing, 'chat_invite_hash' => 'string', 'title' => 'string', 'photo' => WebDocument, 'invoice_slug' => 'string'];