method ApiMethods.editUserStarSubscription
ApiMethods.editUserStarSubscription(args: { user_id: number; telegram_payment_charge_id: string; is_canceled: boolean; }): true

Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars. Returns True on success.

Parameters

args: { user_id: number; telegram_payment_charge_id: string; is_canceled: boolean; }

Return Type

true

Usage

import { type ApiMethods } from "types";