Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Message → Send Voice

AI-generated

Summary

Send a voice message to a Telegram chat using a file ID, URL, or binary data.

Inputs

  • chat_id (required) — Unique identifier for the target chat or username (@channelusername).
  • fileSource — How to provide the file (fileId, url, or binary).
  • fileId — File ID of the voice message to send.
  • fileUrl — URL of the voice message file.
  • binaryPropertyName — Name of the binary property containing the voice file.
  • caption — Caption for the voice message.
  • parse_mode — How to parse the caption (none, Markdown, MarkdownV2, or HTML).
  • reply_markup — Inline keyboard or other reply markup as JSON.
  • disable_notification — Send the message silently.
  • protect_content — Protect the message from forwarding and saving.
  • reply_to_message_id — If the message is a reply, ID of the original message.
  • message_thread_id — Unique identifier for the target message thread (topic) of the forum.
  • disable_web_page_preview — Disables link previews for links in this message.
  • allow_sending_without_reply — Allow sending if the replied-to message is not found.

Output shape

a single record containing the sent message object

Returns the standard Telegram API response object for the sent message.

Examples

Example 1: Send a voice message from a stored file ID to a chat.

chat_id: 123456789; fileSource: fileId; fileId: 'ABC123def456'; caption: 'Meeting notes'

Example 2: Send a voice message from a URL to a channel.

chat_id: @mychannel; fileSource: url; fileUrl: 'https://example.com/voice.mp3'; disable_notification: true

Example 3: Send a voice message from binary data (e.g., from a previous HTTP node).

chat_id: 123456789; fileSource: binary; binaryPropertyName: data; caption: 'Voice recording'

Links

Discussion