Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Latest
method Context.prototype.editUserStarSubscription
Re-export
import { Context } from "https://deno.land/x/grammy@v1.32.0/mod.ts";

Context-aware alias for api.editUserStarSubscription. Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars. Returns True on success.

Parameters

telegram_payment_charge_id: string

Telegram payment identifier for the subscription

is_canceled: boolean

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.

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#edituserstarsubscription