Skip to content

Dustin-RS/Telegram_WeatherBot

Repository files navigation

WeatherBot

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.

Installation

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.git

Then you need to go to cloned directory and change the branch.

cd Telegram_WeatherBot
git checkout dev

On the branch dev you need to pip install two modules:

pip install pyTelegramBotAPI
pip install requests

And after this you can finally launch it:

python main.py

or

python3 main.py

if 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.py

Contributing

If you are a collaborator it means that you could make any changes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors