This repository contains the Python (v3.7) code for the Python Bytes Podcast Telegram bot.
- Search for the bot in Telegram using either Python Bytes Podcast or @PythonBytesBot
- Click START to begin conversing with the bot
- To search for podcast episodes, send any search text (for example,
treebeard
) - To search with multiple words, separate them with a
-
(for example,sanic-django
)
/start
- To start interacting with the bot and get a welcome message- Any search text
- Clone the current repository -
git clone https://github.com/AbhishekPednekar84/python-bytes-bot
- Create a virtual environment -
python -m venv venv
- Activate the virtual environment -
venv\Scripts\activate.bat
(Windows),source venv/bin/activate
(OSx / Linux) - Install the project dependencies -
pip install -r requirements.txt
- Create a
.env
file and add an environment variable calledTELEGRAM_TOKEN
(refer to.env.example
) - Run the code -
python bot/server.py
orpython3 bot/bot_server.py
- To run the tests -
pytest