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:
raises ValueError: In case the gift code link is invalid.
Example
await app.check_gift_code("t.me/giftcode/abc1234567def")