Telegram bot that shows the weather for the entered city using Django service and Yandex API
- Create a virtual environment:
python -m venv ./venv
and activate it. For example on Windows OS:
.\venv\Scripts\Activate.ps1
- Install requirements
pip install -r requirements.txt
-
Create .env file with contents shown in .env.example
-
Go into weather_forecast and apply django migrations:
python .\manage.py migrate
- Launch telegram bot microservice:
python .\weather_bot\tgbot\bot.py
- Launch django service from weather_forecast folder:
python .\manage.py runserver
Go into your bot and start conversation by:
/start