payments.refundStarsCharge

Refund a Telegram Stars transaction, see here » for more info.

 Method schema is available as of layer 181. Switch »

Parameters

Name Type Description
user_id InputUser User to refund.
charge_id string Transaction ID.

Result

Updates

Possible errors

Code Type Description
400 CHARGE_ALREADY_REFUNDED The transaction was already refunded.
400 USER_BOT_REQUIRED This method can only be called by a bot.
400 USER_ID_INVALID The provided user ID is invalid.

Bots can use this method

Related pages

Telegram Stars

Telegram Stars are virtual items that allow users to purchase digital goods and services from bots and mini apps inside the Telegram ecosystem, send gifts to content creators on the Telegram platform, and more.

Payments API

You can accept payments from Telegram users via Telegram Bots.