Skip to content

ni5arga/weather-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Weather Telegram Bot

This project is a Telegram bot that provides users with weather information for a given location.

Features

Users can send a message with the name of a location to the bot and receive weather information for that location. The bot uses the OpenWeatherMap API to get weather data for the location. The bot responds with a message containing the temperature and weather description for the location in Celsius units.

Getting Started

Clone this repository to your local machine. Install the required dependencies by running pip install -r requirements.txt. Create a new Telegram bot by talking to the BotFather on Telegram and getting a bot token. Create an account on OpenWeatherMap and get an API key. Fill up your bot token and API key Start the bot by running python main.py

Usage

To use the bot, send a message to the bot with the name of a location, such as "New York". The bot will respond with a message containing the temperature and weather description for the location in Celsius units.

Contributing

Contributions to this project are welcome! If you find a bug or have a feature request, please open an issue. If you would like to contribute code, please fork the repository and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A simple telegram bot in Python to fetch weather info

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages