Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.25.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