sendSecretAnimation
Send an animation to a secret chat. USER-ONLY
Parameters
The identifier of the secret chat.
The animation to send.
The duration of the animation in seconds.
The width of the animation in pixels.
The height of the animation in pixels.
Whether the message should be sent silently.
The identifier of a message to reply to.
The message’s time-to-live.
The name of the bot that was used to send the message.
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.
A progress ID retrieved from the method getProgressId. If specified, updates on the upload progress will be sent.
The caption to attach.
The caption’s entities.
The parse mode to use. If omitted, the default parse mode will be used.
Result
Syntax
// Required parameters only.
await client.sendSecretAnimation(id, animation);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendSecretAnimation(id, animation, {
duration,
width,
height,
isSilent,
replyToMessageId,
ttl,
viaBot,
fileName,
fileSize,
mimeType,
chunkSize,
signal,
progressId,
caption,
entities,
parseMode,
});