A telegram quiz bot fed with opentdb.com data.
python-venv
or pipenv- requests
- python-telegram-bot
- Your bot will needs privacy mode to be disabled. Go to: BotFather > /mybots > <select your bot> > Bot Settings > Group Privacy
- Clone the repo & cd into it.
# if using pipenv
pipenv install
pipenv shell
QB_BOT_TOKEN="YOUR TELEGRAM BOT TOKEN" python bot.py
# ============
# if using python-venv / virtualenv
python3 -m venv env/
source env/bin/activate
pip install -r requirements.txt
QB_BOT_TOKEN="YOUR TELEGRAM BOT TOKEN" python bot.py