Telegram CoPilot icon

Telegram CoPilot

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

Actions56

效邪褌 → 袩芯谢褍褔懈褌褜 褔邪褌褘

AI-generated

Overview

This node integrates with Telegram via the TelePilot API, enabling users to perform various Telegram operations programmatically. Specifically, for the resource '效邪褌' (Chat) and operation '袩芯谢褍褔懈褌褜 褔邪褌褘' (Send Message), it allows sending different types of messages such as text, photo, video, audio, files, and video notes to Telegram chats. It supports replying to messages, sending messages in threads, and setting self-destruct timers for messages. This node is useful for automating Telegram messaging workflows, such as sending notifications, media, or automated responses in chats or groups.

Use Case Examples

  1. Sending a text message to a Telegram chat to notify users about an event.
  2. Automating the sending of photos or videos to a Telegram group for marketing or updates.
  3. Forwarding audio messages or voice notes to a chat as part of a customer support workflow.

Properties

Name Meaning
chat_id The unique identifier of the Telegram chat where the message will be sent.
messageText The text content of the message to be sent.
reply_to_msg_id The message ID to which the new message is replying, if any.
message_thread_id The thread ID within the chat where the message should be sent, if applicable.
localFilePath The local file path for sending photos or video notes.
videoFilePath The local file path for sending video messages.
filePath The local file path for sending files or documents.
photoCaption Caption text for photos being sent.
fileCaption Caption text for files being sent.
self_destruct_time Time in seconds after which the message will self-destruct, if set.
sendAsVoice Boolean flag indicating whether to send audio as a voice message.
audioSource Source of the audio to send, either from binary data or file path.

Output

JSON

  • chat_id - The ID of the chat where the message was sent.
  • message_id - The ID of the sent message.
  • success - Indicates if the message sending operation was successful.
  • error - Error message if the sending operation failed.
  • result - Detailed result object returned from the Telegram API after sending the message.

Dependencies

  • TelePilot API credentials (apiId, apiHash, phoneNumber)

Troubleshooting

  • Ensure the Telegram account is logged in before sending messages; otherwise, the node will throw a login error.
  • Check file paths for media messages to confirm files exist and are accessible; missing files cause errors.
  • For voice messages, use .ogg format to avoid compatibility issues and keep file size under 20MB.
  • If the Telegram API returns errors like 'CHAT_WRITE_FORBIDDEN', verify the bot or user has permission to send messages in the chat.
  • Use the /help command in the ChatTrigger node for login assistance and troubleshooting guidance.

Links

  • TelePilot Login Guide - Instructions for logging in and authenticating the Telegram account for TelePilot.

Discussion