editUserStarSubscription
Cancels or re-enables extension of a user's Telegram Stars subscription using the Telegram payment charge ID.
Instructions
Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars. Returns True on success.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>",
"telegram_payment_charge_id": "<telegram_payment_charge_id>",
"is_canceled": "<is_canceled>"
},
"name": "editUserStarSubscription"
}
}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 a subscription that was previously canceled by the bot. | |
| telegram_payment_charge_id | Yes | Telegram payment identifier for the subscription |