sendSecretAudio
Send an audio file to a secret chat. USER-ONLY
Parameters
The identifier of the secret chat.
The audio file to send.
The duration of the audio file in seconds.
Names of the entities that are being featured in the audio.
The title of the audio.
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.sendSecretAudio(id, audio);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendSecretAudio(id, audio, {
duration,
performer,
title,
isSilent,
replyToMessageId,
ttl,
viaBot,
fileName,
fileSize,
mimeType,
chunkSize,
signal,
progressId,
caption,
entities,
parseMode,
});