Types

InputMediaVoice

Properties

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

Upload abort signal.

caption?: string

The caption of the media.

captionEntities?: MessageEntity[]

The entities of media’s caption.

parseMode?: ParseMode

Override the parse mode used for the media’s caption.

type: "voice"
voice: FileSource

The voice.

duration?: number

The duration of the voice message in seconds.