Telegram CoPilot icon

Telegram CoPilot

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

Actions56

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

AI-generated

Overview

This node operation interacts with Telegram users to perform actions such as retrieving user information, creating private or secret chats, and managing star subscriptions. It is useful for automating Telegram user-related tasks like fetching user details, initiating chats, and handling subscription data.

Use Case Examples

  1. Retrieve detailed information about a specific Telegram user by their user ID.
  2. Create a private chat with a user, optionally forcing the creation even if a chat exists.
  3. Fetch star subscription details for monitoring or analytics purposes.

Properties

Name Meaning
User ID The unique identifier of the Telegram user to perform operations on.
Force Whether to force the creation of a private chat, overriding existing chats if necessary.

Output

JSON

  • id - The unique identifier of the user or chat created.
  • 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 information of the user.
  • full_info - Detailed full information about the user when requested.
  • chat - Information about the private or secret chat created with the user.
  • star_subscriptions - Details about the user's star subscriptions if requested.

Dependencies

  • Telegram API credentials (apiId, apiHash, phoneNumber)

Troubleshooting

  • Ensure the Telegram API credentials are correctly configured and valid.
  • If the client is not initialized, check the login process and session status.
  • Errors like 'Unauthorized' or 'Session was closed' indicate the need to re-login using the provided guide.
  • When creating private chats, ensure the user ID is valid and the 'force' parameter is set appropriately.

Links

Discussion