Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 21114

Scripting • Re: Feature request: /tool fetch HTTP-POST can send a file

$
0
0
Ah, Telegram docs suggest this:
In sendDocument, sending by URL will currently only work for GIF, PDF and ZIP files.
And backup files are normally bigger than 64kB (and even bigger when base64-encoded for form-data).
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



Viewing all articles
Browse latest Browse all 21114

Trending Articles