Last active
February 13, 2024 23:34
-
-
Save refabr1k/ef8133483a79d9fb180d46d8ab838bc7 to your computer and use it in GitHub Desktop.
Mikrotik dhcp lease notification using telegrambot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:local newanimal [("lease status = ".[$leaseBound]." | ".[$"lease-hostname"]." | ".[$leaseActIP]." | ".[$leaseActMAC])] | |
/tool fetch "https://api.telegram.org/botAPIKEY/sendmessage\?chat_id=CHATID&text=Movement in the animal farm!%0a $newanimal" keep-result=no; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment