Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method Api.prototype.refundStarPayment
import { Api } from "https://deno.land/x/grammy_menu@v1.2.2/deps.deno.ts";

Refunds a successful payment in Telegram Stars.

Parameters

user_id: number

Identifier of the user whose payment will be refunded

telegram_payment_charge_id: string

Telegram payment identifier

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

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