Author: @xbowery
This repository contains source code to complement the workshop conducted on 4 June 2022 on How to Code basic Telegram Bots. To navigate around, please find the relevant bot based on their specific functions as named by their folders that they reside under.
- This repository makes use of the
python-telegram-bot
library, which runs on Python 3.7+. Please ensure you have the appropriate Python version installed. - This repository contains 2 different versions (
v13
andv20
) of Telegram Bot codes written using thepython-telegram-bot
library, please make sure to have the appropriate versions - Clone this repository using the command:
git clone https://github.com/xbowery/HEAP-telebot-workshop.git
- Go to the relevant subdirectory using the command
cd <folder-name>
. - Create your own
.env
file. A sample.env.sample
file has been created for you to take reference. - Install the relevant Python modules using the following command:
pip install -r requirements.txt
(Please make sure you have pip
installed before running the command)
- Run the bot using the following command:
python bot.py
Have fun learning from the repo and creating your own Telegram Bots!
Refer to CONTRIBUTING.MD