refund_star_payment()

Client.refund_star_payment()

Refund the star to the user.

Parameters:
  • user_id (int | str) – The user id to refund the stars.

  • telegram_payment_charge_id (str) – The charge id to refund the stars.

Returns:

bool – On success, a True is returned.

Example

await app.refund_star_payment(user_id, telegram_payment_charge_id)