Telegram CoPilot icon

Telegram CoPilot

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

Actions56

袚褉褍锌锌邪 → 袩芯谢褍褔懈褌褜 褍褔邪褋褌薪懈泻芯胁 褋褍锌械褉谐褉褍锌锌褘

AI-generated

Overview

This node interacts with the Telegram CoPilot API to perform operations related to user login via phone number. It supports commands for starting login, stopping sessions, clearing local sessions, and handling multi-factor authentication (MFA). It is useful for automating Telegram account login processes within workflows, such as managing authentication states and session control.

Use Case Examples

  1. Automate Telegram login by sending /start command with phone number and code.
  2. Stop and clear Telegram client sessions programmatically.
  3. Handle MFA during Telegram login within an automated workflow.

Output

JSON

  • message - Status or error message related to login operation
  • error - Error details if any occurred during login process
  • new_transaction - Details of new transactions detected (in trigger scenarios)
  • timestamp - Timestamp of the event or transaction
  • success - Indicates if the operation was successful
  • result - Result data from Telegram API calls
  • chat_id - Telegram chat identifier involved in the operation
  • audioSource - Source type of audio file for sending voice messages
  • sendAsVoice - Flag indicating if audio is sent as a voice message
  • audioFilePath - Local file path of the audio file
  • audioCaption - Caption text for the audio message
  • errorType - Type of error encountered during message sending
  • fileSize - Size of the audio file in bytes
  • fileExists - Indicates if the audio file exists at the specified path
  • warning - Warnings related to file format or size for voice messages

Dependencies

  • Telegram CoPilot API credentials (apiId, apiHash, phoneNumber)

Troubleshooting

  • Common errors include client initialization failures, unauthorized access, and session closure errors. Users should ensure correct API credentials and follow the login guide at https://telepilot.co/login-howto.
  • Errors like 'A closed client cannot be reused' indicate the session was terminated and require re-login.
  • Unauthorized errors suggest invalid or expired credentials; re-authentication is needed.
  • File-related errors when sending audio messages may occur if the file path is incorrect or the file size exceeds Telegram limits.

Links

Discussion