Skip to content

StarSubscription

Type · TDLib 1.8.67 · d1085f9c

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

StarSubscription(
  id: string,
  chat_id: int53,
  expiration_date: int32,
  is_canceled: Bool,
  is_expiring: Bool,
  pricing: StarSubscriptionPricing,
  type: StarSubscriptionType
) → StarSubscription

id

string

Unique identifier of the subscription

chat_id

int53

Identifier of the chat that is subscribed

expiration_date

int32

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

is_canceled

Bool

True, if the subscription was canceled

is_expiring

Bool

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

pricing

StarSubscriptionPricing

The subscription plan

type

StarSubscriptionType

Type of the subscription