Telegram CoPilot icon

Telegram CoPilot

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

Actions56

小芯芯斜褖械薪懈械 → 小芯褏褉邪薪懈褌褜 褋芯芯斜褖械薪懈褟 胁 懈蟹斜褉邪薪薪芯械

AI-generated

Overview

This node interacts with Telegram chats to perform various chat-related operations such as retrieving chat history, sending messages (text, photo, video, audio, file), deleting or forwarding messages, managing chat folders, joining or leaving chats, and handling chat invite links. It is useful for automating Telegram chat management and messaging tasks within workflows, for example, sending scheduled messages, archiving chat history, or moderating chat content.

Use Case Examples

  1. Automatically send a message to a Telegram chat when a specific event occurs.
  2. Retrieve and archive chat history from a Telegram group for record-keeping.
  3. Delete specific messages from a chat based on certain criteria.
  4. Forward messages from one chat to another automatically.

Properties

Name Meaning
Chat ID The unique identifier of the Telegram chat to operate on. Required for most chat and message operations.
Message IDs Comma-separated list of message IDs to be deleted, forwarded, or saved. Required for operations involving multiple messages.

Output

JSON

  • chat_id - The ID of the chat involved in the operation.
  • message_ids - List of message IDs involved in the operation, e.g., deleted or forwarded messages.
  • result - The result object returned from the Telegram API for the performed operation.
  • success - Indicates whether the operation was successful (true/false).
  • error - Error message if the operation failed.

Dependencies

  • Requires Telegram API credentials including apiId, apiHash, and phoneNumber for authentication.

Troubleshooting

  • Ensure the Telegram API credentials are correct and the phone number is authorized to access the Telegram account.
  • If the client session is closed or unauthorized, re-login using the login operation as per the provided guide.
  • Check for permissions when accessing chat invite link info or managing chat members; administrative rights may be required.
  • File operations require valid file paths and adherence to Telegram file size limits, especially for voice messages (max 20MB).
  • Common error messages include 'Client is not initialized', 'Unauthorized', 'Chat not found', and 'File reference expired'. Follow the error messages' guidance to resolve issues.

Links

Discussion