teleproto - v1.229.0
    Preparing search index...

    Interface PaymentsBotCancelStarsSubscriptionParams

    interface PaymentsBotCancelStarsSubscriptionParams {
        chargeId: string;
        restore?: boolean;
        userId: EntityLike;
    }
    Index
    chargeId: string

    The provider_charge_id from the messageActionPaymentSentMe service message sent to the bot for the first subscription payment.

    restore?: boolean

    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 . bot_canceled flag set. The bot can can partially undo this operation by setting this flag: this will allow the user to reactivate the subscription.

    userId: EntityLike

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