Is possible triggering script by telegram bot?

Hi guys i find info only about send message from Mikrotik to Telegram, you know a working method for start routeros script by a telegram bot?

My desire is create a button for telegram bot like “Query devices status”
Mikrotik receive the command and run a script that do some thing.
For now i’m able to send only from mikrotik

Thanks

Did you try to search the forum first? There are many examples. If it’s not what you are looking for, explain in more detail what you need.

Hi maybe I can’t explain well. In the forum (and Google) I find only info for sending text from mikrotik to telegram bot, one way communication. I need to communicate from telegram to mikrotik for starting my script via bot button if is possible.

You would have to query the api with fetch command, then parse the output.
I’ve thought about implementing that myself, but do not want to implement a reliable parser. :-p

MikroTik, want to implement a JSON parser? Would be handy for this and other use cases…