payments.BotCancelStarsSubscription¶
- class pyrogram.raw.functions.payments.BotCancelStarsSubscription[source]¶
Cancel a bot subscription
Usable by Users Bots- Details:
Layer:
229ID:
6DFA0622
- Parameters:
user_id (
InputUser) – The ID of the user whose subscription should be (un)cancelledcharge_id (
str) – Theprovider_charge_idfrom the messageActionPaymentSentMe service message sent to the bot for the first subscription payment.restore (
bool, optional) – 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_canceledflag set. The bot can can partially undo this operation by setting this flag: this will allow the user to reactivate the subscription.
- Returns:
bool