Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Chat → Search Public Chat (by Username)

AI-generated

Overview

This node operation allows searching for a public Telegram chat by its username. It is useful when you want to find and interact with a specific public chat on Telegram by providing the chat's username. For example, you can use this to locate a public channel or group by its username to retrieve information or perform further actions.

Use Case Examples

  1. Searching for a public Telegram channel by its username to get its details.
  2. Finding a public group chat by username to join or fetch chat history.

Properties

Name Meaning
Chat Username The username of the public chat to search for.

Output

JSON

  • id - Unique identifier of the found public chat.
  • title - Title of the public chat.
  • username - Username of the public chat.
  • type - Type of the chat (e.g., channel, group).
  • status - Status or availability of the public chat.

Dependencies

  • Requires a Telegram API key credential for authentication.

Troubleshooting

  • If the node returns an error 'Unauthorized', it means the Telegram session is not logged in or the API key is invalid. Re-authenticate using the login process.
  • If the node throws 'A closed client cannot be reused', the Telegram session was closed or terminated. You need to log in again.
  • Ensure the username provided is correct and corresponds to a public chat; private or invalid usernames will not return results.

Links

Discussion