Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Chat → Get Chat

AI-generated

Overview

This node operation retrieves detailed information about a specific Telegram chat using its chat ID. It is useful for scenarios where you need to fetch metadata or details about a chat, such as its title, type, participants, or other attributes. For example, you might use this operation to get information about a group chat or a private chat before sending messages or performing other actions within that chat.

Use Case Examples

  1. Fetch details of a chat by providing its chat ID to understand its properties before sending messages or managing the chat.
  2. Use it to verify chat information in automation workflows that interact with Telegram chats.

Properties

Name Meaning
Chat ID The unique identifier of the chat to retrieve information for.

Output

JSON

  • id - Unique identifier of the chat.
  • type - Type of the chat (e.g., private, group, supergroup, channel).
  • title - Title or name of the chat.
  • photo - Photo associated with the chat, if any.
  • permissions - Permissions settings for the chat.
  • last_message - The last message sent in the chat.
  • members_count - Number of members in the chat.

Dependencies

  • An API key credential for Telegram via TelePilot API

Troubleshooting

  • Ensure the provided Chat ID is correct and the bot or user has access to the chat.
  • If you receive an 'Unauthorized' error, re-authenticate the Telegram session as it might have expired or been closed.
  • If the session is closed or terminated, follow the login instructions at https://telepilot.co/login-howto to re-establish connection.
  • Check network connectivity and API limits if requests fail unexpectedly.

Links

Discussion