Module

x/grammy/mod.ts>Api#refundStarPayment

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