set_gift_resale_price()

Client.set_gift_resale_price()

Change resale price of a unique gift owned by the current user.

Usable by Users Bots
Parameters:
  • owned_gift_id (str) – Unique identifier of the target gift. For a user gift, you can use the message ID (int) of the gift message. For a channel gift, you can use the packed format chatID_savedID (str). For a upgraded gift, you can use the gift link.

  • resale_star_count (int) – The new price for the unique gift. Pass 0 to disallow gift resale.

Returns:

bool – On success, True is returned.

Example

# Change resale price of a unique gift
await app.set_gift_resale_price(owned_gift_id="123456", resale_star_count=100)