Git Product home page Git Product logo

mikrotik-3's Introduction

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

mikrotik-3's People

Contributors

jacauc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.