payments.checkCanSendGift
Check if the specified gift » can be sent.
func (c *Client) PaymentsCheckCanSendGift(ctx context.Context, giftid int64) (PaymentsCheckCanSendGiftResultClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsCheckCanSendGift(ctx, giftid)
if err != nil {
return err
}
_ = res // PaymentsCheckCanSendGiftResultClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
GiftID | int64 | yes | Gift ID. |
Returns
PaymentsCheckCanSendGiftResultClass
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | STARGIFT_INVALID | The passed gift is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.checkCanSendGift#c0c4edc9