Client. Create Connection (TelegramClientCreate)#

Creates a connection to Telegram in the form of a client.

Session Name[Text] Session name. To save authorization, a unique session name must be specified and subsequently used for connection. Upon the first launch, an authorization form will open. To authorize, you will need to enter your phone number, then the service will send a code that will arrive in the already connected Telegram client (for example, on your phone). Then enter this code and click Authorize.
Timeout[Number] The timeout for a response from the Telegram server in seconds.
Authorization Window Timeout[Number] The timeout for the authorization window in seconds.
Enable Debug InformationWhen enabled, creates a log file with debug information about the client's operation.
Connection[Link] Returns the client connection object. Available properties: UserId - User ID.
Error Handling Level

Select the error handling level. Possible values:

  • "Default" - by default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that blocks will output during operation. Possible values:

  • "Default" - by default;
  • "Release" - output is disabled;
  • "Debug" - outputs main information;
  • "Detailed" - outputs detailed information.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Text[Text] Returns detailed information about the error in case of incorrect execution of the block's work.