Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

User → Create Private Chat

AI-generated

Overview

This node operation creates a private chat with a specified user on Telegram. It is useful when you want to programmatically initiate a private conversation with another user by their user ID. For example, it can be used in automation workflows to start a chat with a user for sending messages or managing interactions.

Use Case Examples

  1. Creating a private chat with a user by their Telegram user ID.
  2. Forcing the creation of a private chat even if one already exists.

Properties

Name Meaning
User ID The ID of the user to create a private chat with.
Force Whether the creation of the private chat should be forced, overriding any existing chat if necessary.

Output

JSON

  • user_id - The ID of the user for whom the private chat was created.
  • force - Indicates if the creation was forced.
  • chat - Details of the created private chat returned from the Telegram API.

Dependencies

  • Requires Telegram API credentials (API ID, API Hash, and phone number) for authentication.

Troubleshooting

  • Common errors include 'Unauthorized' which indicates the Telegram session is not logged in; the user should re-authenticate using the login process.
  • Errors about a closed client indicate the session was terminated and a new login is required.
  • Ensure the user ID is valid and the bot or user has permission to create chats with that user.

Links

  • TelePilot Login Guide - Instructions for logging in and authenticating the Telegram session required for this node.

Discussion