buy_gift_upgrade()

Client.buy_gift_upgrade()

Pays for upgrade of a regular gift that is owned by another user or channel chat.

Usable by Users Bots
Parameters:
  • owner_id (int | str) – Unique identifier (int) or username (str) of the target chat. For a contact that exists in your Telegram address book you can use his phone number (str).

  • prepaid_upgrade_hash (str) – Prepaid upgrade hash as received along with the gift.

  • star_count (int, optional) – The amount of Telegram Stars the user agreed to pay for the upgrade. Must be equal to gift.upgrade_price.

Returns:

bool – On success, True is returned.