apply_gift_code()#

Client.apply_gift_code()#

Apply a gift code.

Usable by Users Bots
Parameters:

link (str) – The gift code link.

Returns:

bool – On success, True is returned.

Raises:

ValueError – In case the gift code link is invalid.

Example

# apply a gift code
app.apply_gift_code("t.me/giftcode/abc1234567def")