
More about Dude notifications can be found here: You can use Dude to execute commands in your RouterOS, this means you can use same tool fetch to send messages from the Dude server.ĭude notification type which allows to execute commands in RouterOS is called execute on server.

If the Telegram bot is configured correctly, you should instantly see the message, when the tool fetch command is executed in RouterOS/Dude.ĭude notification example using Telegram bot Most likely you will use the same bot and chat, this means each time you will need to change only message text: tool fetch url=" 309683994:AAFh8645FeAOgUbcOgUVIhtclbmzpwwIXpAB/sendMessage\?chat_id= 312605050&text= ExampleMessage" keep-result=no The variables in the URL you will need to change: Note: Note that "?" need to be escaped with backslash &text=ExampleMessage - ExampleMessage is message string, which will be sent to your bot.309683994:AAFh8645FeAOgUbcOgUVIhtclbmzpwwIXpAB - Your Telegram bot token.

Where the HTTPs URL GET query string is created from: tool fetch url="\?chat_id=312605050&text=ExampleMessage" keep-result=no To successfully send message to your bot, you will need to know the bot token. Since /tool fetch is able to use HTTPs GET method you can use this tool to send instant messages to Telegram API. Telegram supports both - GET and POST HTTP method. When the bot will be created, you will receive token which can be used for HTTPs APIģ09683994:AAFh8645FeAOgUbcOgUVIhtclbmzpwwIXpABįor a description of the Bot API, see this page: To receive messages from the Dude server / RouterOS, you will need to create your Telegram bot, more information can be found on this page:
Kumpulan script mikrotik bot telegram how to#
Here is quick example how to instantly send messages from your RouterOS (Dude) server to Telegram bot. 2 Dude notification example using Telegram bot.
