convert_gift_to_stars()

Client.convert_gift_to_stars()

Convert a given regular gift to Telegram Stars.

Note

Requires the can_convert_gifts_to_stars business bot right.

Usable by Users Bots
Parameters:
  • owned_gift_id (str) – Unique identifier of the regular gift that should be converted to Telegram Stars.

  • business_connection_id (str, optional) – Unique identifier of the business connection. For bots only.

Returns:

bool – On success, True is returned.

Example

# Convert gift
await app.convert_gift_to_stars(message_id=123)