Aim:- Control Raspberry pi via telegram app.
Step1: create bot apk in telegram application in your mobile phone.
Syntex:-
Open telegram --search botfather--open it.
Type--. /start----then /newbot-----useridbot
Open terminal run the below cmd.
1. Sudo apt-get install python-pip
2. Sudo pip install teleport
3. Git clone://GitHub/salmanfarisvp/TelegramBot.git
Now time to change the acces token in given code
Source code :- Mr.nannu-telepot-program-code
3.3 Install "Python Package Index"
sudo apt-get install python-pip
Note: Make sure Pi has internet access
3.4 Install "telepot"
sudo pip install telepot
4.1 Clone the git
git clone https://github.com/salmanfarisvp/TelegramBot.git
4.2 Paste your Bot Token here
bot = telepot.Bot('Bot Token')
Note: 1.6 for more details
4.3 Run the Code
python telegrambot.py
All set, now time to connect the Pi and LED.
Step 5: Connect LED to Pi6.1 Start our Bot

No comments:
Post a Comment
NO NEED TO DO ANY SPAM ACTIVITY.