Bot. Download File#
Downloads a file from a message.
| Connection | [Link] Connection object to the bot. The variable name in this property must match the variable name in the "Connection" property of the "Bot. Create Connection" block from the Telegram group that was previously used to connect to the Telegram bot. |
| Message | [Link] Message object. The variable name in this property must match the variable name in the "Message" property of the "Bot. Get Message" block from the Telegram group. |
| File Name | [Text] The name and path of the file where the file from the message will be saved. Voice messages must be downloaded in .ogg format. You can enter the full file name including the path. |
| Number of Attempts | [Number] The number of attempts in case of a connection error with the server. |
| Error Handling Level | Select the error handling level. Possible values:
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:
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. |