Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy/mod.ts>Api#refundStarPayment

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