Telegram CoPilot icon

Telegram CoPilot

袙邪褕 锌械褉褋芯薪邪谢褜薪褘泄 Telegram CoPilot

Actions56

小芯芯斜褖械薪懈械 → 袨褌锌褉邪胁懈褌褜 褌械泻褋褌芯胁芯械 褋芯芯斜褖械薪懈械

AI-generated

Overview

This node operation sends a text message to a specified chat in Telegram. It supports replying to a specific message or within a message thread, allowing for threaded conversations. This is useful for automating message sending in Telegram chats, such as sending notifications, alerts, or chat responses programmatically.

Use Case Examples

  1. Sending a welcome message to a new chat group.
  2. Automating customer support responses in a Telegram chat.
  3. Broadcasting updates or alerts to a specific chat.

Properties

Name Meaning
Chat ID The unique identifier of the chat where the message will be sent.
Message Text The text content of the message to be sent.
Reply to threadID If not 0, specifies the message thread identifier in which the message will be sent, enabling threaded replies.
Reply to messageId 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.
  • reply_to_msg_id - The ID of the message this message is replying to, if any.
  • message_thread_id - The thread ID within the chat if the message was sent in a thread.
  • input_message_content
    • _ - The type of the message content, here it is 'inputMessageText' indicating a text message.
    • text
      * _ - The format type of the text, 'formattedText'.
      * text - The actual text content of the sent message.

Dependencies

  • An API key credential for Telegram via TelePilot API

Troubleshooting

  • Ensure the Telegram client is logged in and authorized before sending messages; otherwise, the node will throw a login error.
  • Verify that the Chat ID is correct and that the bot or user has permission to send messages to that chat.
  • If replying to a message or thread, ensure the message/thread IDs are valid and exist in the chat.
  • Common errors include 'Client is not initialized' if the session is not active, or 'Unauthorized' if credentials are invalid or expired. Re-login may be required.

Links

  • TelePilot Login Guide - Instructions on how to log in and authorize the Telegram client for use with TelePilot.

Discussion