edit_user_star_subscription()

Client.edit_user_star_subscription()

Allows the bot to cancel or re-enable a Stars subscription a user has paid for.

Parameters:
  • user_id (int | str) – Target user.

  • telegram_payment_charge_id (str) – The charge ID from the successful payment.

  • is_canceled (bool) – Pass True to cancel, False to re-enable.

Returns:

bool – True on success.