Client. Get Chat Id (TelegramClientGetChatId)#

Finds and returns the chat Id for the specified destination.

Connection[Link] Client connection object. The variable name in this property must match the variable name in the "Connection" property of the "Client. Create Connection" block from the Telegram group that was previously used to connect the Telegram client.
Destination

[Text] Destination object. This string can contain the following values:

  • Chat Id,
  • Chat name,
  • User Id,
  • Combination of "FirstName LastName" of the User,
  • Username value of the User,
  • User's phone number,
  • Link.
Chat Id[Text] Returns the chat 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.