refundStarPayment

inline fun refundStarPayment(telegramPaymentChargeId: String, userId: Long): RefundStarPaymentAction

Refunds a successful payment in Telegram Stars. Returns True on success.

Api reference

Parameters

userId

Identifier of the user whose payment will be refunded

telegramPaymentChargeId

Telegram payment identifier