Telegram CoPilot icon

Telegram CoPilot

袙邪褕 锌械褉褋芯薪邪谢褜薪褘泄 Telegram CoPilot

Actions56

袩芯谢褜蟹芯胁邪褌械谢褜 → 袩芯谢褍褔懈褌褜 锌芯谢薪褍褞 懈薪褎芯褉屑邪褑懈褞 芯 锌芯谢褜蟹芯胁邪褌械谢械

AI-generated

Overview

This node interacts with Telegram's user-related functionalities via the TelePilot API. It supports operations such as retrieving user information, creating private or secret chats, and managing star subscriptions. This node is useful for automating Telegram user management tasks, for example, fetching detailed user info by user ID or initiating private chats programmatically.

Use Case Examples

  1. Retrieve full information of a Telegram user by their user ID.
  2. Create a new private chat with a specified user ID.
  3. Fetch star subscription details for a user, optionally filtering only expiring subscriptions.

Properties

Name Meaning
User ID The unique identifier of the Telegram user to perform operations on, such as fetching user info or creating chats with.

Output

JSON

  • id - The unique identifier of the user or chat created/retrieved.
  • first_name - The first name of the user.
  • last_name - The last name of the user.
  • username - The username of the user.
  • status - The status or detailed information of the user.
  • chat_id - The ID of the created private or secret chat.
  • star_subscriptions - Details about the user's star subscriptions, if requested.

Dependencies

  • TelePilot API credentials (apiId, apiHash, phoneNumber) are required for authentication and interaction with Telegram.

Troubleshooting

  • Ensure the TelePilot API credentials are correctly configured and valid to avoid authentication errors.
  • If the client session is closed or unauthorized, re-login using the loginWithPhoneNumber operation as per the TelePilot guide.
  • Common errors include 'Client is not initialized' if the client setup fails, or 'User not found' if the provided user ID is invalid.
  • Use the continueOnFail option to handle errors gracefully during execution.

Links

Discussion