Skip to content

Instantly share code, notes, and snippets.

@l0ser140
l0ser140 / Telegram-check.rsc
Last active Sep 11, 2020
Mikrotik Telegram bot
View Telegram-check.rsc
#Schedule run every ~30sec.
:global botID;
:global myChatID;
:local parse do={
:local startLoc ([:find $content $variable -1] + [:len $variable] + 2);
:local commaLoc ([:find $content "," $startLoc] - 1 + 1);
:local braceLoc ([:find $content "}" $startLoc] - 1 + 1);
:local endLoc $commaLoc;