Actions28
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
The Telegram CoPilot n8n node allows you to interact with Telegram's API, automating various user, chat, and message operations.
For the User resource and the Get User operation, this node retrieves information about a specific Telegram user by their ID.
This is useful for scenarios where you need to fetch details about a Telegram user, such as displaying user profiles, verifying user existence, or integrating Telegram user data into your workflows.
Example use cases:
- Fetching Telegram user details for CRM enrichment.
- Verifying if a user exists before sending them a message.
- Logging user information for audit or support purposes.
Properties
Display Name | Type | Description |
---|---|---|
User ID | String | ID of chat (the unique identifier of the Telegram user whose information you want to retrieve). Required. |
Output
The output will be a JSON object containing the details of the requested Telegram user. The structure of the output depends on the Telegram API's getUser
response, but typically includes fields such as:
{
"id": 123456789,
"first_name": "John",
"last_name": "Doe",
"username": "johndoe",
"phone_number": "+1234567890",
// ...other Telegram user fields
}
- All output is returned in the
json
field of each item. - No binary data is produced by this operation.
Dependencies
- External Service: Requires access to the Telegram API via the TelePilot integration.
- Credentials: You must configure the
telePilotApi
credential in n8n, which includes your Telegram API ID, API Hash, and phone number. - n8n Configuration: Ensure the TelePilot node and its dependencies are installed and properly configured.
Troubleshooting
Common Issues:
- Invalid User ID: If the provided User ID does not exist or is incorrect, the node may return an error or an empty result.
- Authentication Errors: If your Telegram credentials are invalid or the session has expired, you may see errors like "Please login: https://telepilot.co/login-howto".
- Session Closed: If the client session is closed, you'll receive an error prompting you to log in again.
Error Messages & Resolutions:
"Please login: https://telepilot.co/login-howto"
Resolution: Re-authenticate your Telegram account using the instructions at the provided link."Session was closed or terminated. Please login again: https://telepilot.co/login-howto"
Resolution: Restart the login process for your Telegram credentials.- Other API errors:
Resolution: Check that the User ID is correct and that your credentials are valid.