Telegram CoPilot icon

Telegram CoPilot

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

Actions56

袟胁械蟹写褘 → 袩芯谢褍褔懈褌褜 褋褌邪褌褍褋 写芯褏芯写芯胁 芯褌 蟹胁械蟹写

AI-generated

Overview

This node operation handles the login process for the Telegram CoPilot integration using a phone number. It supports commands to start login, stop the session, clear local session data, and provide help or status information. The login flow includes handling multi-factor authentication (MFA) and managing the client's authentication state. This operation is useful for automating Telegram account login and session management within n8n workflows.

Use Case Examples

  1. Automate Telegram login by sending /start command with phone number and authentication code.
  2. Stop and clear Telegram client sessions programmatically.
  3. Receive status updates and help instructions for Telegram login process.

Output

JSON

  • text - Text messages or status updates related to the login process
  • message - Error or informational messages
  • error - Error details if any error occurs during login
  • success - Boolean indicating success of certain login-related actions
  • result - Result object from Telegram API calls during login

Dependencies

  • Telegram API credentials (apiId, apiHash, phoneNumber)

Troubleshooting

  • Ensure correct Telegram API credentials are provided to avoid authentication failures.
  • If 'Client is not initialized' error occurs, verify that the login process was completed successfully.
  • For MFA, provide the correct password when prompted to avoid login errors.
  • If session is closed or terminated, re-login is required as indicated by error messages.
  • Use /help command in Chat Trigger node for guidance on login commands.

Links

Discussion