Skip to content

Conversation

@Vlatsky
Copy link

@Vlatsky Vlatsky commented Aug 17, 2025

This adds a method to the bot that cancels a star subscription of a user.

a direct use of this is after a user subscribes to a monthly subscription to the bot
example given is #211


Method Parameters:

user_id = TG ID of the user to who will have their star subscription cancelled

charge_id = charge ID of the transaction made from the monthly subscription,
this can be stored when the create_invoice_link has been produced.

restore = disables autorenewal of the subscriptions, and prevents the user from reactivating the subscription once the current period expires. default False

@Vlatsky Vlatsky changed the title Add cancel subscription for star subscriptions Add cancel subscription method for star subscriptions Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant