editUserStarSubscription
Cancel or re-enable extension of a user's subscription paid in Telegram Stars. Pass true to stop renewals, false to reactivate, using the payment charge ID.
Instructions
Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars. Returns True on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Identifier of the user whose subscription will be edited | |
| is_canceled | Yes | Pass True to cancel extension of the user subscription; the subscription must be active up to the end of the current subscription period. Pass False to allow the user to re-enable it. | |
| telegram_payment_charge_id | Yes | Telegram payment identifier for the subscription |