sendSecretPhoto
Send a photo to a secret chat. USER-ONLY
Parameters
id: number
The identifier of the secret chat.
The photo to send.
width?: number
The width of the photo in pixels.
height?: number
The height of the photo in pixels.
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.
caption?: string
The caption to attach.
The caption’s entities.
Result
void
Syntax
// Required parameters only.
await client.sendSecretPhoto(id, photo);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendSecretPhoto(id, photo, {
width,
height,
isSilent,
replyToMessageId,
ttl,
viaBot,
fileName,
fileSize,
mimeType,
chunkSize,
signal,
progressId,
caption,
entities,
});