Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

The node acts as a personal Telegram assistant, enabling interaction with the Telegram API to perform various user-related operations. Specifically for the "User" resource and the "Get User" operation, it retrieves detailed information about a Telegram user by their user ID. This is useful in scenarios where you need to fetch user profile data, verify user identities, or gather user details for further processing within an automation workflow.

Practical examples include:

  • Fetching user details to personalize messages or notifications.
  • Retrieving user info to log or audit interactions.
  • Using user data to manage contacts or chats programmatically.

Properties

Name Meaning
User ID The unique identifier of the Telegram user whose information you want to retrieve.

Output

The output is a JSON array containing the user information object returned from the Telegram API. This object includes all available details about the specified user, such as username, first name, last name, status, profile photos, and other metadata provided by Telegram.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active Telegram API authentication credential (an API key and associated login).
  • Depends on a connection manager that handles Telegram client sessions.
  • The node requires prior successful login via phone number authentication to interact with the Telegram API.
  • Network access to Telegram servers is necessary.

Troubleshooting

  • Common issues:

    • Attempting to use the node without logging in will result in errors indicating the need to authenticate first.
    • Session expiration or closure may cause errors; users must re-login following the provided guide.
    • Invalid or missing User ID parameter will prevent successful retrieval.
  • Error messages:

    • "Session was closed or terminated. Please login again: https://telepilot.co/login-howto"
      Indicates the Telegram session is no longer valid; re-authentication is required.
    • "Please login: https://telepilot.co/login-howto"
      Means the node cannot proceed without a valid login session.
    • Other errors related to unauthorized access suggest invalid credentials or expired sessions.

To resolve these, ensure the Telegram account is logged in using the node's login mechanism before performing user operations.

Links and References

Discussion