Ah, Telegram docs suggest this:
So not going to work for backups I think...
But using /tool/e-mail is actually easiest/most reliable way to get files out of RouterOS. Unfortunately, Telegram has not appear to have some built-in email gateway to Telegram.
Perhaps, if it's a new ARM Mikrotik, you can add a container that has `curl`. That let you do this since it supports the @filename syntax – but that's a bit of lot of work.
Why you're generally stuck with /tool/e-mail to get files off the box from a scheduled script.
And backup files are normally bigger than 64kB (and even bigger when base64-encoded for form-data).In sendDocument, sending by URL will currently only work for GIF, PDF and ZIP files.
So not going to work for backups I think...
But using /tool/e-mail is actually easiest/most reliable way to get files out of RouterOS. Unfortunately, Telegram has not appear to have some built-in email gateway to Telegram.
Perhaps, if it's a new ARM Mikrotik, you can add a container that has `curl`. That let you do this since it supports the @filename syntax – but that's a bit of lot of work.
Why you're generally stuck with /tool/e-mail to get files off the box from a scheduled script.
Statistics: Posted by Amm0 — Sun Mar 10, 2024 6:59 pm