payments.getUniqueStarGift #

Obtain info about a collectible gift » using a slug obtained from a collectible gift link ».

Layer 223

payments.uniqueStarGift#416c56e8 gift:StarGift chats:Vector<Chat> users:Vector<User> = payments.UniqueStarGift;
---functions---
payments.getUniqueStarGift#a1974d72 slug:string = payments.UniqueStarGift;

Parameters #

NameTypeDescription
slugstringThe slug.

Result #

payments.UniqueStarGift

Only users can use this method #

Possible errors #

CodeTypeDescription
400STARGIFT_SLUG_INVALIDThe specified gift slug is invalid.

Telegram Gifts #

Users can send Gifts to their friends. The recipients of gifts can display them on their profile pages or turn them into Telegram Stars ». Telegram Stars can be used for many things, including supporting creators and buying services in mini apps.

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.