sendVideoNote

Send a video note.

PARAMETERS
chatId: ID

The chat to send the video note to.

videoNote: FileSource

The video note to send.

duration?: number

The duration of the video note in seconds.

length?: number

The video’s width and height (diameter).

caption?: string

The caption to attach.

captionEntities?: MessageEntity[]

The caption’s entities.

parseMode?: ParseMode

The parse mode to use for the caption. If not provided, the default parse mode will be used.

thumbnail?: FileSource

A thumbnail to assign. Cannot be a URL.

fileName?: string

The file name to assign if applicable.

mimeType?: string

The mime type to assign if applicable.

chunkSize?: number

Size of each upload chunk in bytes.

signal?: AbortSignal | null

Upload abort signal.

disableNotification?: boolean

Whether to send the message in a silent way without making a sound on the recipients’ clients.

protectContent?: boolean

Whether to protect the contents of the message from copying and forwarding.

replyToMessageId?: number

The identifier of a message to reply to.

replyQuote?: ReplyQuote

A specific part of the replying message’s text to quote.

messageThreadId?: number

The identifier of a thread to send the message to.

sendAs?: ID

The identifier of a chat to send the message on behalf of. User-only.

replyMarkup?: ReplyMarkup

The reply markup of the message. Bot-only.

businessConnectionId?: string
RESULT

The sent video note.

SYNTAX
// Required parameters only.
await client.sendVideoNote(chatId, videoNote);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendVideoNote(chatId, videoNote, {
    duration,
    length,
    caption,
    captionEntities,
    parseMode,
    thumbnail,
    fileName,
    mimeType,
    chunkSize,
    signal,
    disableNotification,
    protectContent,
    replyToMessageId,
    replyQuote,
    messageThreadId,
    sendAs,
    replyMarkup,
    businessConnectionId,
});