Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Message → Send Text Message

AI-generated

Overview

This node sends 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 conversational messages programmatically.

Use Case Examples

  1. Sending a welcome message to a new user in a Telegram chat.
  2. Automating status updates or alerts to a Telegram group or channel.

Properties

Name Meaning
Chat ID The identifier of the Telegram chat where the message will be sent.
Message Text The text content of the message to be sent.
Reply to messageId Optional identifier of a message to which the new message will be a reply.

Output

JSON

  • message_id - The unique identifier of the sent message.
  • chat_id - The chat identifier where the message was sent.
  • content - The content of the sent message, including the text.

Dependencies

  • Requires Telegram API credentials (API ID, API Hash, and phone number) for authentication.

Troubleshooting

  • Common issues include authentication errors if the Telegram session is not logged in or has expired. The node may throw errors like 'Please login' or 'Unauthorized' which indicate the need to re-authenticate.
  • If the client session is closed or terminated, the node will prompt to login again.
  • Ensure the Chat ID and message text are correctly provided; missing or invalid inputs will cause the operation to fail.

Links

Discussion