check_gift_code()#

Client.check_gift_code()#

Get information about a gift code.

Usable by Users Bots
Parameters:

link (str) – The gift code link.

Returns:

CheckedGiftCode – On success, a checked gift code is returned.

Raises:

ValueError – In case the gift code link is invalid.

Example

# get information about a gift code
app.check_gift_code("t.me/giftcode/abc1234567def")