Module

x/grammy/mod.ts>Api#refundStarPayment

The Telegram Bot Framework.
Very Popular
Latest
method Api.prototype.refundStarPayment
import { Api } from "https://dotland.deno.dev/x/grammy@v1.31.3/mod.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