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 #
| Name | Type | Description |
|---|---|---|
| gift_id | long | Gift ID. |
Result #
payments.CheckCanSendGiftResult¶
Only users can use this method #
Possible errors #
| Code | Type | Description |
|---|---|---|
| 400 | STARGIFT_INVALID | The passed gift is invalid. |
Related pages #
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.¶