Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.26 KB

Telegram_Bot_setup.md

File metadata and controls

27 lines (19 loc) · 1.26 KB

Now since we want to use telegram bot feature to control our IoT device so for that we have to do some initialization setup on Arduino IDE.

Steps:

  1. Setting up Telegram Bot Libraries

    • Now in Arduino IDE, Sketch -> Include Library -> Manage Libraries and search for telegram.
    • Install Universal Telegram Bot(If it asks you to install JSON dependeny then click on Install all).
    • Search for json and make sure ArduinoJson is installed(Working with v6.17.2).
  2. Getting the telegram Bot Token

    • Open telegram app and search for BotFather. Click on the account with blue tick.

    • Tap Start

    • Type /newbot to create new bot.

    • Give the name to your bot.

    • Give username to your bot. It's should end with bot in name.

    • Now at (1) it gives you the bot interface link and (2) provides you the HTTP API Key.Keep both the things private to yourself.

      image

  3. Now setup in Arduino IDE

    • In Arduino IDE, File -> Exampels -> Universal Telegram Bot-> ESP8266 -> Flash LED
    • Now fill the SSID,Password and API Key.
    • Compile and Upload.
    • On Telegram open the bot you made and Start