Skip to content

jacauc/Mikrotik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Mikrotik

a Collection of handy Mikrotik Scripts

Many of these scripts rely on Telegram to send notifications to your telegram bot with variables set in the setGlobals script. More details below on how to activate your bot.

Donate Bitcoin

How to Create a Telegram bot

Detailed instructions for setting up the Telegram Bot: https://www.forsomedefinition.com/automation/creating-telegram-bot-notifications/

Simplified instructions:

  1. Use telegram
  2. Chat with @botfather
  3. Type /newbot
  4. Give your bot a name... e.g. myMikrotik
  5. Give your bot a username... e.g. MyMikrotikBot
  6. You will get a message like this:

2018-01-06_15-53-12

  1. RECORD THE TOKEN SHOWN IN THE MESSAGE
  2. Start a chat with your bot and type /start
  3. Exit aforementioned chat and create a Telegram Group conversation. Call it something like "Mikrotik Notifications"
  4. Invite your bot to the group.
  5. Access the following page (insert your bot's TOKEN and remove the <<< and >>> characters):
https://api.telegram.org/bot<<<TOKEN>>>/getUpdates
  1. Look for the group's ID as shown in green below. The group ID will normally be preceded by a minus sign. RECORD THE GROUPID:

2018-01-06_16-06-23

  1. Do a test - You should now get a hello world message in the telegram group from your bot. If this didn't work, check steps 1-11 again.
https://api.telegram.org/bot<<<TOKEN>>>/sendMessage?chat_id=<<<-GROUPID>>>&text=Hello+World
  1. Keep your GROUPID and TOKEN and replace the values accordingly in setGlobals Script.

Donate Bitcoin

About

Collection of handy Mikrotik Scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages