A
A
Ashot Aslanyan2020-11-05 20:23:46
Mikrotik
Ashot Aslanyan, 2020-11-05 20:23:46

How to send a file to Telegram from MikroTik?

Please tell me there is an option to send a file to telegram from MikroTik?

tried like this, it doesn't work

:execute [/system backup save name="test" dont-encrypt=yes];
:local newbackup [/file find name="test.backup"];
/tool fetch url="https://api.telegram.org/botXXXXXXXXX:AAAAABBBBBCCCCCDDDDD/sendDocument\?chat_id=XXXXXXXXX" http-method=post  http-data="document=$newbackup" keep-result=no;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-11-06
@dimonchik2013

files cannot be sent, only JSON

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question