PC-Pedia / ESP-Telegram-Bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ€– ESP Controller with Telegram Bot (MicroPython)

  • πŸ”₯ With this code you can control your electronic things
  • ⚑️ Coded By @PySudo

βš™ config

Go to the config.json file :

  • πŸ“Œ connect a jumper wire to your pin then connect the jumper to your electronic thing , Now add your GPIO pin number to the pins list

  • πŸ“Œ if you want all pins in the pins list to be turned off when the program runs, change the auto_off_pins value to true

  • πŸ“Œ you must add your Telegram bot token to the token variable in line 5

  • πŸ“Œ add the SSID of your wireless router or access point to the SSID variable

  • πŸ“Œ add the password of your wireless router or access point to the key variable

  • πŸ“Œ the API_URL variable is optional. if Telegram is filtered in your country, you can use this variable. how is works? You need to deploy this API to a host or server (I use www.Deta.sh) then add your "API URL" to the API_URL variable. But if you don't have problem with Telegram APIs, don't change the API_URL value

  • πŸ“Œ Finally, add the user ID of your Telegram bot admins in the ADMIN list variable

About


Languages

Language:Python 100.0%