Telegram bot that shows weather in visual format. Try it out - t.me/TeleWeatherRobot
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Instructions below are specified only for Linux and probably for MacOS.
- Create a Telegram Bot at t.me/BotFather and get the token of your bot, then put it as
bot_tokenvariable. - Go to darksky.net, get your API-key for
darksky_key. - And you have to get the last one token
geocoding_tokenat Google Geocoding API. - Then you can enter for
adminssome ids of users who can make mass mailing. - Fill your
hostandport(443, 80, 88 or 8443).
- Generate quick'n'dirty SSL certificate:
openssl genrsa -out webhook_pkey.pem 2048
openssl req -new -x509 -days 3650 -key webhook_pkey.pem -out webhook_cert.pem
When asked for "Common Name (e.g. server FQDN or YOUR name)" you should reply with the same value as your server's ip addres
- Create virtual environment for Python and install all requiremetns:
virtualenv venv --python=python3
source venv/bin/activate
pip install -r requiremetns.txt
- Just enter
python main.pyin your terminal.