This repository contains the Python (v3.7) code for the Talk Python Podcast Telegram bot.
- Search for the bot in Telegram using either Talk Python Podcast or @TalkPythonBot
- Click START to begin conversing with the bot
- To search for podcast episodes, send any search text (for example,
django) - To search with multiple words, separate them with a
-(for example,flask-mongo)
/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/talk-python-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
.envfile and add an environment variable calledTELEGRAM_TOKEN(refer to.env.example) - Run the code -
python bot/server.pyorpython3 bot/bot_server.py - To run the tests -
pytest

