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 chats (join, open, close, delete), sending chat actions, saving messages, editing message text, deleting and forwarding messages, and handling business chat links. 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. Manage chat invite links and retrieve information about invite link members.

Properties

Name Meaning
Chat ID The unique identifier of the chat to perform operations on.
Message ID The unique identifier of a message within a chat, used for message-specific operations like editing or retrieving a message link.

Output

JSON

  • chat_folder - Details of chat folders retrieved or edited.
  • chat_list - Information about chat lists or folders when adding or removing chats.
  • chat_invite_link_info - Information about a chat invite link.
  • chat_invite_link_members - Members associated with a chat invite link.
  • chat_history - History of messages in a chat, including paid posts if filtered.
  • chat_details - Details of a specific chat.
  • message_details - Details of messages sent, edited, deleted, or forwarded.
  • business_chat_link - Information about business chat links created, deleted, or retrieved.

Dependencies

  • TelePilot API credentials (apiId, apiHash, phoneNumber) required for authentication and client initialization.

Troubleshooting

  • Ensure the Telegram account is logged in and the session is active; otherwise, operations will fail with login-related errors.
  • Check that the Chat ID and Message ID parameters are correctly provided and valid for the intended operation.
  • For operations requiring admin rights (e.g., getting chat invite link info), ensure the Telegram user has the necessary permissions.
  • File operations (sending audio, video, photo, or document) require valid local file paths and appropriate file formats; errors may occur if files are missing or unsupported.
  • If the client session is closed or unauthorized, re-login is required following the provided guide (https://telepilot.co/login-howto).

Links

Discussion