Telegram CoPilot icon

Telegram CoPilot

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

Actions56

袙褏芯写 → 袙褏芯写 锌芯 薪芯屑械褉褍 褌械谢械褎芯薪邪 褔械褉械蟹 ChatTrigger

AI-generated

Overview

This node integrates with Telegram via the TelePilot API to handle login and session management through phone number authentication. It supports commands like /start, /stop, /clear, and /help to manage the Telegram client session. The node is particularly useful for automating Telegram account login workflows, managing authentication states, and handling multi-factor authentication (MFA) within n8n workflows. It is designed to work with a ChatTrigger node to receive and process login commands interactively.

Use Case Examples

  1. Automate Telegram login by sending /start command with phone number and authentication code.
  2. Stop and clear Telegram client sessions using /stop and /clear commands.
  3. Use the node to handle MFA password input during Telegram login.

Output

JSON

  • message - Text message or status update related to login or session management
  • error - Error details if an error occurs during login or session management
  • compatibility - Compatibility information or instructions for QR-Code login
  • url - URL for login instructions or help
  • text - Text content of help or status messages
  • new_transaction - Details of new star transactions detected (in other operations)
  • timestamp - Timestamp of events or transactions
  • operation - Operation name for specific message types
  • success - Indicates success status of an operation
  • result - Result data from an operation
  • errorDetails - Detailed error information including message, code, and stack trace

Dependencies

  • TelePilot API credentials (apiId, apiHash, phoneNumber)

Troubleshooting

  • Ensure the TelePilot API credentials (apiId, apiHash, phoneNumber) are correctly set and valid.
  • If login fails, check the authentication state and provide the required authentication code or MFA password as prompted.
  • If the client session is closed or unauthorized, re-login using the /start command.
  • Common error messages include 'Failed to initialize client', 'Please login', and 'Session was closed or terminated'. Follow the provided URL https://telepilot.co/login-howto for detailed login instructions.

Links

Discussion