This is a python implementation of a Telegram chatbot that can be used to check the weather in your local area.
Python 3.X (tested on 3.10.2)
From a console, run the following commands:
git clone [email protected]:ravenesco/Telegram-Weather-Bot.git
cd Telegram-Weather-Bot
pip install -r requirements.txt
After that you will need to obtain:
- Telegram Bot token by registering your Telegram bot (refer to BotFather instructions https://t.me/BotFather)
- OpenWeather API key (create an account at https://openweathermap.org and go to API keys section of your profile)
Then put both tokens into config.py
Finally, to run the bot, simply execute the following command from a console:
python bot.py
You will find this bot operational and can test it yourself at:
https://t.me/RavenescoWeatherBot
Open chat with the bot and type /start
to initialize it.
Then type /forecast
to request weather forecast from the bot.