Actions37
- Chat Actions
- Contact Actions
- File Actions
- Group Actions
- Login Actions
- Message Actions
- Request Actions
- User Actions
Contact → Get Contacts
AI-generatedOverview
This node interacts with the Telegram CoPilot API to retrieve the list of contacts from a Telegram account. It is useful for scenarios where you need to access and manage your Telegram contacts programmatically, such as syncing contacts with other systems, analyzing contact data, or automating messaging workflows.
Use Case Examples
- Retrieve all contacts from a Telegram account to display in a CRM system.
- Automate sending messages to all contacts retrieved from Telegram.
- Analyze contact information for marketing or communication purposes.
Output
JSON
id- Unique identifier of the contactfirst_name- First name of the contactlast_name- Last name of the contactphone_number- Phone number of the contactusernames- Usernames associated with the contactstatus- Current status of the contact (e.g., online, offline)
Dependencies
- Requires Telegram API credentials including apiId, apiHash, and phoneNumber for authentication.
Troubleshooting
- Ensure the Telegram account is logged in via the login process before attempting to get contacts.
- Common errors include session closure or unauthorized access, which require re-login.
- If the node throws 'A closed client cannot be reused' or 'Unauthorized', re-authenticate using the login instructions provided.
- Check network connectivity and Telegram API availability if requests fail.
Links
- Telegram CoPilot Login Guide - Instructions for logging in and authenticating the Telegram account for use with this node.