Client. Download File (TelegramClientDownloadFile)#

Downloads a file from a message.

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.
Message[Link] Message object. The variable name in this property must match the variable name in the "Message" property of the "Client. Get Message" block or from the array of the "Messages" property of the "Client. Export Messages" block from the Telegram group.
File Name[Text] The name and path of the file where the file from the message will be saved. You can enter the full file name including the path.
Number of Attempts[Number] The number of attempts in case of a communication error with the server.
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 the 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.