refundStarPayment
Returns boolean ↗
Refunds a successful payment in Telegram Stars.
Required: user_id, telegram_payment_charge_id
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("refund_star_payment", { user_id: 0, telegram_payment_charge_id: "..."})Parameters
user_id number Required
Identifier of the user whose payment will be refunded.
telegram_payment_charge_id string Required
Telegram payment identifier.