Interface StarSubscription

Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars.

interface StarSubscription {
    @type: "starSubscription";
    chat_id: number;
    expiration_date: number;
    id: string;
    is_canceled?: boolean;
    is_expiring?: boolean;
    pricing: StarSubscriptionPricing;
    type: StarSubscriptionType;
}

Properties

@type: "starSubscription"
chat_id: number

Identifier of the chat that is subscribed.

expiration_date: number

Point in time (Unix timestamp) when the subscription will expire or expired.

id: string

Unique identifier of the subscription.

is_canceled?: boolean

True, if the subscription was canceled.

is_expiring?: boolean

True, if the subscription expires soon and there are no enough Telegram Stars on the user's balance to extend it.

The subscription plan.

Type of the subscription.