sendSecretSticker
Send a sticker to a secret chat. USER-ONLY
Parameters
id: number
The identifier of the secret chat.
The sticker to send.
isSilent?: boolean
Whether the message should be sent silently.
replyToMessageId?: string
The identifier of a message to reply to.
ttl?: number
The message’s time-to-live.
viaBot?: string
The name of the bot that was used to send the message.
fileName?: string
The file name to assign if applicable.
fileSize?: number
The file’s size.
mimeType?: string
The mime type to assign if applicable.
chunkSize?: number
Size of each upload chunk in bytes.
signal?: AbortSignal
Upload abort signal.
progressId?: string
A progress ID retrieved from the method getProgressId. If specified, updates on the upload progress will be sent.
Result
void
Syntax
// Required parameters only.
await client.sendSecretSticker(id, sticker);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendSecretSticker(id, sticker, {
isSilent,
replyToMessageId,
ttl,
viaBot,
fileName,
fileSize,
mimeType,
chunkSize,
signal,
progressId,
});