transferGift
Transfer a gift.
Parameters
The identifier of a chat to transfer the gift to.
The gift to transfer.
transferPrice?: number
businessConnectionId?: string
The identifier of a business connection to perform the action on. Bot-only.
Result
void
Syntax
// Required parameters only.
await client.transferGift(chatId, gift);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.transferGift(chatId, gift, { transferPrice, businessConnectionId });