Actions40
- Chat Actions
- Custom Request Actions
- Group Actions
- File Actions
- Login Actions
- Message Actions
- User Actions
- Contact Actions
Overview
This node enables Telegram login using a phone number through a ChatTrigger interface, supporting multi-factor authentication (MFA) and session management commands. It facilitates Telegram account login, session control, and interaction with Telegram API for various operations such as sending messages, managing chats, and retrieving user or chat information. It is useful for automating Telegram interactions in workflows, especially where phone number login and session handling are required.
Use Case Examples
- Automate Telegram login via phone number and MFA using chat commands.
- Manage Telegram sessions by starting, stopping, or clearing local session data.
- Send messages, photos, audio, and files to Telegram chats programmatically after login.
- Retrieve user, chat, and message information from Telegram for processing.
Output
JSON
text- Textual response or status messages from login commands or operationsapiHash- Masked API hash credential information when requestedmessage- Message details or error information in JSON outputerror- Error details if an operation failssuccess- Boolean indicating success of an operationresult- Result data from Telegram API callschat_id- Telegram chat identifier related to the operationaudioSource- Source type of audio data sentsendAsVoice- Indicates if audio is sent as a voice messagefileExtension- File extension of audio files sent as voice messageswarning- Warnings related to file format or usageerrorType- Categorized error type for specific Telegram API errors
Dependencies
- Requires a Telegram API key credential with apiId, apiHash, and phoneNumber for authentication.
- Uses TelePilotNodeConnectionManager for managing Telegram client sessions and authentication states.
Troubleshooting
- Common issues include session closure or termination requiring re-login.
- Errors like 'Unauthorized' or 'A closed client cannot be reused' indicate session problems and need re-authentication.
- File-related errors when sending audio or files, such as missing file paths or unsupported formats.
- Telegram API restrictions like user restrictions on receiving messages or expired file references.
- Use the /help command in ChatTrigger for guidance on supported commands and login process.
Links
- TelePilot Login How-To Guide - Official guide for logging in with phone number and managing sessions using TelePilot.