Telegram CoPilot icon

Telegram CoPilot

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

Actions56

袩芯谢褜蟹芯胁邪褌械谢褜 → 小芯蟹写邪褌褜 薪芯胁褘泄 褋械泻褉械褌薪褘泄 褔邪褌

AI-generated

Overview

This node interacts with Telegram's user-related functionalities via the Telegram CoPilot API. It supports operations such as retrieving user information, creating private or secret chats, and managing star subscriptions. Typical use cases include automating user data retrieval, initiating chats programmatically, and managing user subscriptions within Telegram.

Use Case Examples

  1. Retrieve detailed information about a specific Telegram user by their user ID.
  2. Create a new private chat with a user by specifying their user ID.
  3. Fetch star subscription details for a user, optionally filtering by 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.

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 Telegram username of the user.
  • status - Status or result of the operation, such as success or error details.
  • chat_id - Identifier of the chat created or accessed.
  • star_subscriptions - Details about the user's star subscriptions, if requested.

Dependencies

  • Telegram API credentials (apiId, apiHash, phoneNumber) required for authentication.

Troubleshooting

  • Ensure the Telegram API credentials are correctly configured and valid to avoid authentication errors.
  • If the client session is closed or unauthorized, re-login using the login operation as per the provided guide.
  • Handle errors related to invalid user IDs or permissions by verifying the input and user access rights.

Links

Discussion