Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

This node allows sending a text message to a specified Telegram chat using the Telegram CoPilot API. It is useful for automating message sending in Telegram chats, such as sending notifications, alerts, or chat responses programmatically. For example, it can be used to send a welcome message to a new chat member or to send updates to a group chat.

Use Case Examples

  1. Send a text message to a chat by specifying the chat ID and message text.
  2. Reply to a specific message in a thread by providing the message thread ID or reply message ID.

Properties

Name Meaning
Chat ID The unique identifier of the Telegram chat where the message will be sent.
Message Text The text content of the message to be sent.
Reply to threadID Optional. If provided and not zero, the message will be sent as a reply in the specified message thread.
Reply to messageId Optional. The identifier of the message to which this message is a reply.

Output

JSON

  • chat_id - The ID of the chat where the message was sent.
  • message_id - The unique identifier of the sent message.
  • date - Timestamp of when the message was sent.
  • content - The content object of the sent message, including the text.

Dependencies

  • Requires an API key credential for Telegram CoPilot API authentication.

Troubleshooting

  • Ensure the Telegram API credentials are correctly configured and the user is logged in; otherwise, the node will throw login-related errors.
  • If the chat ID or message text is missing or invalid, the node will fail to send the message.
  • Errors related to permissions (e.g., CHAT_WRITE_FORBIDDEN) indicate the bot or user does not have permission to send messages to the chat.
  • File path errors or missing files will cause failures when sending media messages (not applicable for text message operation).

Links

Discussion