Turn on or off light with telegram bot

--

What’s a Bot?

Bots are third-party applications that run inside Telegram. Users can interact with bots by sending them messages, commands and inline requests. You control your bots using HTTPS requests to their bot API. Telegram bots are special accounts that do not require an additional phone number to set up. Users can interact with bots.

Services Used:

Heroku

Adafruit

Github

Google Collaboratory

Creating your bot

  1. On Telegram, search @ BotFather, send him a “/start” message
  2. Send another “/newbot” message, then follow the instructions to setup a name and a username
  3. Your bot is now ready, be sure to save a backup of your API token, and correct.

GitHub Link:

Tejaswinisearch/Tele_bot

You can’t perform that action at this time. You signed in with another tab or window. You signed out in another tab or…

github.com

The above link provides the code for controlling the light from the telegram bot by using the cloud service heroku.

Working:

1.The Python code has deployed by using Heroku cloud service.

2.By sending “/turnoff” command the bot will turn off the light and it displays the picture of the light.

3.By sending “/turnon” command the bot will turn on the light and it displays the glowing picture of the light.

4. This can be observed on adafruit account.

The above pictures are showing the response after giving the commands in Telegram Bot.

Thank you for reading….

--

--

No responses yet