sendSticker
Send a sticker.
Parameters
The chat to send the sticker to.
Emoji to bind to the sticker.
The file name to assign if applicable.
The file’s size.
The mime type to assign if applicable.
Size of each upload chunk in bytes.
Upload abort signal.
Whether to send the message in a silent way without making a sound on the recipients’ clients.
Whether to protect the contents of the message from copying and forwarding.
Information on what the message is replying to.
The identifier of a thread to send the message to.
The identifier of a chat to send the message on behalf of. User-only.
The identifier of a message effect to be attached to the message.
If specified, the message will be scheduled to be sent at that date. User-only.
The identifier of a business connection ID to perform the action on. Bot-only.
Result
The sent sticker.
Syntax
// Required parameters only.
await client.sendSticker(chatId, sticker);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendSticker(chatId, sticker, {
emoji,
fileName,
fileSize,
mimeType,
chunkSize,
signal,
disableNotification,
protectContent,
replyTo,
messageThreadId,
sendAs,
effectId,
sendAt,
businessConnectionId,
paidBroadcast,
});