GramIO API Reference / gramio/dist / TelegramInputMediaVoiceNote
Interface: TelegramInputMediaVoiceNote
Defined in: @gramio/types/out/objects.d.ts:6696
Represents a voice message file to be sent.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
caption? | string | { toString: string; } | Optional. Caption of the voice message to be sent, 0-1024 characters after entities parsing | @gramio/types/out/objects.d.ts:6708 |
caption_entities? | TelegramMessageEntity[] | Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode | @gramio/types/out/objects.d.ts:6716 |
duration? | number | Optional. Duration of the voice message in seconds | @gramio/types/out/objects.d.ts:6720 |
media | string | Blob | File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files » | @gramio/types/out/objects.d.ts:6704 |
parse_mode? | "HTML" | "MarkdownV2" | "Markdown" | Optional. Mode for parsing entities in the voice message caption. See formatting options for more details. | @gramio/types/out/objects.d.ts:6712 |
type | "voice_note" | Type of the media, must be voice_note | @gramio/types/out/objects.d.ts:6700 |