StarsSubscription

class pyrogram.types.StarsSubscription

Represents a Telegram Stars subscription.

Parameters:
  • id (str) – Subscription ID.

  • peer (User | Chat) – The peer (user or chat) associated with this subscription.

  • until_date (datetime) – Expiration date of the current subscription period.

  • pricing (StarsSubscriptionPricing) – Pricing of the subscription.

  • title (str, optional) – Title of the subscription (for bot subscriptions).

  • is_canceled (bool, optional) – Whether this subscription was canceled.

  • can_refulfill (bool, optional) – Whether we left the channel but can still rejoin.

  • missing_balance (bool, optional) – Whether the subscription expired due to insufficient balance.

  • bot_canceled (bool, optional) – Whether the bot canceled this subscription.

  • chat_invite_hash (str, optional) – Invitation link to renew after cancellation.

  • invoice_slug (str, optional) – For bot subscriptions, the invoice identifier.