Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Media

AI-generated

Summary

Sends a text message to a specified chat (default operation for the Media resource).

Inputs

  • chat_id (required) — Identifier of the target chat.
  • messageText (required) — Text content of the message.
  • reply_to_msg_id — Optional ID of a message to reply to.
  • message_thread_id — Optional thread identifier for supergroup messages.

Output shape

object representing the response from the Telegram API (typically containing the sent message details).

Fields vary based on the underlying Telegram update; may include IDs, status, or error information.

Examples

Example 1: Send a plain text message

Set resource to Media, operation to sendMessage, provide chat_id and messageText.

Example 2: Send a message in a thread

Set resource to Media, operation to sendMessage, fill chat_id and message_thread_id along with messageText.

Example 3: Send a photo with caption

Set resource to Media, operation to sendMessagePhoto, provide localFilePath and photoCaption, chat_id.

Links

Discussion