Raw.payments.BotCancelStarsSubscription

Raw.payments.BotCancelStarsSubscription

Cancel a bot subscription

payments.botCancelStarsSubscription#6dfa0622 flags:# restore:flags.0?true user_id:InputUser charge_id:string = Bool;
export namespace Raw {
  export namespace payments {
    export class BotCancelStarsSubscription {
      constructor(params: { restore?: boolean; userId: Raw.TypeInputUser; chargeId: string }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 198
Constructor ID: 0x6dfa0622

Property

  • restore : boolean or undefined

    If not set, disables autorenewal of the subscriptions, and prevents the user from reactivating the subscription once the current period expires: a subscription cancelled by the bot will have the starssubscription.botCanceled flag set. the bot can can partially undo this operation by setting this flag: this will allow the user to reactivate the subscription.

  • userId : Raw.TypeInputUser

    The id of the user whose subscription should be (un)cancelled

  • chargeId : string

    The providerChargeId from the messageactionpaymentsentme service message sent to the bot for the first subscription payment.

Results

boolean