Telegram CoPilot icon

Telegram CoPilot

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

Actions56

效邪褌 → 袨褌泻褉褘褌褜 褔邪褌

AI-generated

Overview

This node interacts with Telegram chats using the TelePilot API. It supports various chat-related operations such as retrieving chat folders, editing chat folders, adding or removing chats from folders, getting chat invite link info and members, fetching chat history and paid posts, managing chat membership, sending chat actions, saving messages, editing and deleting messages, forwarding messages, managing business chat links, and retrieving active chat stories. It is useful for automating Telegram chat management and message handling tasks within workflows.

Use Case Examples

  1. Automatically fetch chat history for analysis or backup.
  2. Add or remove chats from specific folders based on workflow conditions.
  3. Send messages, photos, videos, or audio files to a chat programmatically.
  4. Retrieve and manage chat invite links and their members for community management.

Properties

Name Meaning
Chat ID The unique identifier of the Telegram chat to perform operations on.

Output

JSON

  • chat_id - The ID of the chat involved in the operation.
  • result - The result of the chat operation, such as message details, chat info, or status.
  • error - Error message if the operation failed.
  • new_transaction - Details of new star transactions detected in the chat (for transaction triggers).
  • timestamp - Timestamp of events or transaction checks.

Dependencies

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

Troubleshooting

  • Ensure the Telegram account is logged in via the login operation before performing chat operations.
  • Common errors include 'Client is not initialized' if the session is not active, and 'Chat not found' if the chat ID is invalid.
  • If the session is closed or unauthorized, re-login is required as indicated by error messages referencing the TelePilot login guide.
  • File-related operations require valid file paths and appropriate file formats, especially for voice messages which work best with .ogg format.

Links

Discussion