Skip to content

soroushsafaar/telegram-weather-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Telegram Weather Bot (just for fun) This Telegram Weather Bot is a Python-based bot that provides real-time weather information based on user queries. With this bot, users can easily get weather updates for any location worldwide right within their Telegram conversations.

Features Current Weather: Users can inquire about the current weather conditions by providing the name of a city or location. The bot will respond with details such as temperature, humidity, wind speed, and weather conditions.

Forecast: The bot also provides a 3-day weather forecast for the specified location, allowing users to plan their activities accordingly.

Multilingual Support: The Telegram Weather Bot supports multiple languages, enabling users to receive weather information in their preferred language.

Usage Start a conversation with the Telegram Weather Bot by searching for it in Telegram or adding it to your contacts.

Send a message to the bot with the name of the desired city or location for which you want to receive weather updates.

The bot will respond with the current weather conditions, including temperature, humidity, wind speed, and a brief description of the weather.

To get the 3-day forecast, simply request the forecast for a specific location, and the bot will provide detailed weather information for the upcoming days.

Requirements Python 3.x Python-telegram-bot library OpenWeatherMap API key Installation Clone or download the repository to your local machine.

Install the required dependencies using pip:

Copy code pip install python-telegram-bot Obtain an API key from OpenWeatherMap by signing up on their website (https://openweathermap.org/) and creating a new API key.

Replace the placeholder API key in the code with your actual API key.

Run the Python script to start the Telegram Weather Bot:

Copy code python weather_bot.py Now you can enjoy instant weather updates within your Telegram conversations using the Telegram Weather Bot.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages