Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Message → Send Message with File

AI-generated

Summary

Send a message with any file type to a Telegram chat.

Inputs

  • chat_id (required) — ID of the chat where the message will be sent.
  • filePath (required) — Local path to the file to send.
  • fileCaption — Optional caption for the file.
  • reply_to_msg_id — Identifier of the message to reply to.
  • message_thread_id — If not 0, a message thread identifier in which the message will be sent.

Output shape

object

Telegram API response containing the sent message details.

Examples

Example 1: Send a PDF report to a group chat.

Set chat_id to group ID, filePath to path of the report, and optionally add a caption.

Links

Discussion