Hi, depending on you ROS version, you have a lot of choices and all of them are maybe more flexible.
If you are running ROS v7.1beta4 or above, you can simple use REST API as documented here:
https://help.mikrotik.com/docs/display/ROS/REST+API
On the other side, you can take a look to the MIKROTIK ROS APIs:
https://help.mikrotik.com/docs/display/ROS/API; that are widely diffused and you can even find an example on MIKROTIK documentantion:
https://help.mikrotik.com/docs/display/ ... n3+Example; for those APIs, you may want to take a look to GitHub to find a redy-to-use repository.
In your case and if possible, I personally suggest using the REST API, as they are simpler and more intuitive and allow you to quickly write down a working script from any language (python, php, etc.); a quick example with cURL taken from MIKROTIK documentation (result piped with
jq):
curl -k -u admin: -X POST https://10.155.101.214/rest/ping --data '{"address":"10.155.101.1","count":"4"}' -H "content-type: application/json" | jq
Finally, you can even try to integrate Telegram and MIKROTIK - with REST API o other interfaces - through your own script or ZABBIX, for example, but maybe the second one is a more business scenario; anyway, if you already implemented a ZABBIX system and you are tricky:
https://www.zabbix.com/integrations/telegram