WeatherBot is telegram bot for parsing weather from OpenWeatherMap. Was written in python. It works simple. After /start message, your telegram user_id written to the database with city by default Moscow. You always can change it by choosing appropriate option. When you are changing your city, it automatically changed in to database. Then you have four option about weather: check weather for now, for today, for tomorrow and for week. Choose the case which suits to you and the bot will response to it.
By default, you don't need to install it on your machine. You can simply write to telegram bot @Check_Place_For_Info_bot. But if you need to put it on your machine you need to clone it:
git clone https://github.com/Dustin-RS/Telegram_WeatherBot.gitThen you need to go to cloned directory and change the branch.
cd Telegram_WeatherBot
git checkout devOn the branch dev you need to pip install two modules:
pip install pyTelegramBotAPI
pip install requestsAnd after this you can finally launch it:
python main.pyor
python3 main.pyif you have Linux/MacOS. In the end you need the following commands:
git clone https://github.com/Dustin-RS/Telegram_WeatherBot.git
cd Telegram_WeatherBot
git checkout dev
pip install pyTelegramBotAPI
pip install requests
python main.pyIf you are a collaborator it means that you could make any changes.