Send from Mikrotik ping to Google on Telegram

I’ve been trying to send a ping from MikroTik to Google on my Telegram channel for days.

I’ve only managed to get the text to display, for example: Ping google: ms.

I’ve never been able to get the numerical ping value to display.

I’m using version 7.18, and I’d appreciate your help. I’ve already looked at updated documentation and can’t find the solution.

Regards.

the issue might be in how the output is being parsed for Telegram. Just to confirm, are you using the /tool fetch method with http-method=post to send data to Telegram’s API?

@Monkey Mart Check how you’re capturing the ping result. In RouterOS scripting, use the :put [:ping 8.8.8.8 count=1] command to get the value. Then store the result in a variable and include it in your Telegram message. If it’s returning “ms” only, the script might be parsing the wrong part of the output.