Image for post
Image for post
Photo from SCMP

In this project, we’ll create a Telegram Bot using python-telegram-bot and deploy it to Heroku. It is also programmed to control a feed on Adafruit. The program sends values of 1 and 0 to the feed and turns the status indicator on or off.

Before starting

You will have to sign up for the following services:

  • a Telegram account, on which we will build our bot
  • an Adafruit account

Commands

This bot takes 3 commands: /start ,/lighton and /lightoff

  • /lighton will display the message “Light has been turned ON”. It will also return an image of a lit bulb and will send a value to Adafruit indicating that its ON. …

About

Rithu

Student

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store