Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Contact → Get Contacts

AI-generated

Overview

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

  1. Retrieve all contacts from a Telegram account to display in a CRM system.
  2. Automate sending messages to all contacts retrieved from Telegram.
  3. Analyze contact information for marketing or communication purposes.

Output

JSON

  • id - Unique identifier of the contact
  • first_name - First name of the contact
  • last_name - Last name of the contact
  • phone_number - Phone number of the contact
  • usernames - Usernames associated with the contact
  • status - 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

Discussion