payments.checkCanSendGift #

Check if the specified gift » can be sent.

Layer 223

payments.checkCanSendGiftResultOk#374fa7ad = payments.CheckCanSendGiftResult;
payments.checkCanSendGiftResultFail#d5e58274 reason:TextWithEntities = payments.CheckCanSendGiftResult;
---functions---
payments.checkCanSendGift#c0c4edc9 gift_id:long = payments.CheckCanSendGiftResult;

Parameters #

NameTypeDescription
gift_idlongGift ID.

Result #

payments.CheckCanSendGiftResult

Only users can use this method #

Possible errors #

CodeTypeDescription
400STARGIFT_INVALIDThe passed gift 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.