Skip to content

allendema/telegram-bot-api-scripts

 
 

Repository files navigation

telegram-bot-api-scripts

Following dependency is needed:

  • requests
Saving this locally
$ cd ~/Downloads/
$ mkdir github && cd github
$ git clone https://github.com/allendema/telegram-bot-api-scripts.git
$ pip3 install -r requirements.txt

Go to the directory where the scripts are installed:

$ cd ~/Downloads/github

Let the script you want run in the background:

python3 [BOT] &

Example:

python3 dictionary_bot.py & 
python3 wikipedia_bot.py & 
Dictionary Bot in Action

Dictionary Bot in Action

Wikipedia Bot in Action

Wikipedia Bot in Action

Stoping the script

Find the PID of the BOT then terminate it, like so:

$ ps ax | grep bot

$ sudo kill [PID from the command above]

Releases

No releases published

Languages

  • Python 100.0%