Telethon Send Message icon

Telethon Send Message

Send Telegram messages via local Telethon service

Telethon Send Message

AI-generated

Summary

Send a message to a specified Telegram chat using the local Telethon service, supporting text and optionally a Base64-encoded file attachment.

Inputs

  • Chat ID (required) — The identifier of the Telegram chat to send the message to.
  • Message — Text content of the message to send. Optional if a file is attached.
  • File Base64 — Optional Base64-encoded file content to attach and send with the message; can be raw Base64 or a data URL.
  • File Name — File name to use when sending the Base64 file; defaults to 'file.bin' if not specified.
  • Parse Mode — Formatting mode for the message text; can be 'None', 'Markdown', or 'HTML'.
  • Reply To Message ID — Telegram message ID to reply to within the chat.
  • Silent — Option to send the message silently without notification to chat members.

Output shape

a list of JSON objects containing the Telegram API response for each sent message.

Each output JSON includes response data from the Telethon service along with the credential ID used. The operation throws an error if neither message text nor file payload is provided, or if authentication fails.

Links

Discussion