StarsSubscription#
- class pyrogram.raw.types.StarsSubscription#
Represents a Telegram Star subscription .
Constructor of
StarsSubscription.- Details:
Layer:
220ID:
2E6EAB1A
- Parameters:
id (
str) – Subscription ID.peer (
Peer) – Identifier of the associated private chat.until_date (
int32-bit) – Expiration date of the current subscription period.pricing (
StarsSubscriptionPricing) – Pricing of the subscription in Telegram Stars.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 botchat_invite_hash (
str, optional) – Invitation link, used to renew the subscription after cancellation or expiration.title (
str, optional) – For bot subscriptions, the title of the subscription invoicephoto (
WebDocument, optional) – For bot subscriptions, the photo from the subscription invoiceinvoice_slug (
str, optional) – For bot subscriptions, the identifier of the subscription invoice