Raw.StarsSubscription

Raw.StarsSubscription

Represents a telegram star subscription.

starsSubscription#2e6eab1a flags:# canceled:flags.0?true can_refulfill:flags.1?true missing_balance:flags.2?true bot_canceled:flags.7?true id:string peer:Peer until_date:int pricing:StarsSubscriptionPricing chat_invite_hash:flags.3?string title:flags.4?string photo:flags.5?WebDocument invoice_slug:flags.6?string = StarsSubscription;
export namespace Raw {
  export class StarsSubscription {
    constructor(params: {
      canceled?: boolean;
      canRefulfill?: boolean;
      missingBalance?: boolean;
      botCanceled?: boolean;
      id: string;
      peer: Raw.TypePeer;
      untilDate: number;
      pricing: Raw.TypeStarsSubscriptionPricing;
      chatInviteHash?: string;
      title?: string;
      photo?: Raw.TypeWebDocument;
      invoiceSlug?: string;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 198
Constructor ID: 0x2e6eab1a

Property

  • canceled : boolean or undefined

    Whether this subscription was cancelled.

  • canRefulfill : boolean or undefined

    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.

  • missingBalance : boolean or undefined

    Whether this subscription has expired because there are not enough stars on the user’s balance to extend it.

  • botCanceled : boolean or undefined

    Set if this bot subscription was cancelled by the bot

  • id : string

    Subscription id.

  • peer : Raw.TypePeer

    Identifier of the associated private chat.

  • untilDate : number

    Expiration date of the current subscription period.

  • pricing : Raw.TypeStarsSubscriptionPricing

    Pricing of the subscription in telegram stars.

  • chatInviteHash : string or undefined

    Invitation link, used to renew the subscription after cancellation or expiration.

  • title : string or undefined

    For bot subscriptions, the title of the subscription invoice

  • photo : Raw.TypeWebDocument or undefined

    For bot subscriptions, the photo from the subscription invoice

  • invoiceSlug : string or undefined

    For bot subscriptions, the identifier of the subscription invoice