sell_gift()#

Client.sell_gift()#

Sells a gift received by the current user for Telegram Stars.

Usable by Users Bots
Parameters:

message_id (int) – Unique identifier of the message with the gift in the chat with the user.

Returns:

bool – On success, True is returned.

Example

# Convert gift
app.sell_gift(message_id=123)