https://github.com/iliyasalve/weather_telegram_bot
Telegram Bot for displaying the weather in the city specified by the user / Telegram Bot pour afficher la météo de la ville spécifiée par l'utilisateur
https://github.com/iliyasalve/weather_telegram_bot
api bot-development python telebot telegram-bot translation
Last synced: 12 months ago
JSON representation
Telegram Bot for displaying the weather in the city specified by the user / Telegram Bot pour afficher la météo de la ville spécifiée par l'utilisateur
- Host: GitHub
- URL: https://github.com/iliyasalve/weather_telegram_bot
- Owner: iliyasalve
- License: mit
- Created: 2024-02-23T00:49:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-22T00:02:37.000Z (about 2 years ago)
- Last Synced: 2025-05-18T01:08:31.720Z (about 1 year ago)
- Topics: api, bot-development, python, telebot, telegram-bot, translation
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Weather_Telegram_Bot
**Telegram Bot for displaying the weather in the city specified by the user.**
After the user selects a city, the user can find out the following weather information:
* _Brief description of the current weather;_
* _Current temperature;_
* _Feeling temperature;_
* _Minimum/Maximum temperature for the day;_
* _Pressure;_
* _Humidity;_
* _Wind speed;_
* _Visibility;_
* _Sunrise/Sunset._
Information is displayed in the language used in the Telegram application.
> [!TIP]
> Telegram bot written using the library [telebot](https://pypi.org/project/pyTelegramBotAPI/)
>
> Weather data is taken using the API from the site [OpenWeatherMap](https://openweathermap.org/)
>
> Translation of messages is carried out thanks to the library [translate](https://pypi.org/project/translate/)
> [!IMPORTANT]
> All necessary libraries that require installation are stored in the requirements.txt file.
> [!WARNING]
> Don't forget to add your telegram token and API key from the site OpenWeatherMap to the "config.py" file!
> [!NOTE]
> This code ran and worked correctly on Windows 10 and Python version 3.12.1
---------
**Telegram Bot pour afficher la météo de la ville spécifiée par l'utilisateur.**
Une fois que l'utilisateur a sélectionné une ville, l'utilisateur peut trouver les informations météorologiques suivantes :
* _Brève description de la météo actuelle ;_
* _Température actuelle;_
* _Température ressentie ;_
* _Température minimale/maximale pour la journée ;_
* _Pression ;_
* _Humidité ;_
* _Vitesse du vent ;_
* _Visibilité ;_
* _Lever du soleil._
Les informations sont affichées dans la langue utilisée dans l'application Telegram.
> [!TIP]
> Bot Telegram écrit à l'aide de la bibliothèque [telebot](https://pypi.org/project/pyTelegramBotAPI/)
>
> Les données météo sont récupérées grâce à l'API du site [OpenWeatherMap](https://openweathermap.org/)
>
> La traduction des messages s'effectue grâce à la bibliothèque [translate](https://pypi.org/project/translate/)
> [!IMPORTANT]
> Toutes les bibliothèques nécessaires qui nécessitent une installation sont stockées dans le fichier requirements.txt
> [!WARNING]
> N'oubliez pas d'ajouter votre token de Telegram et clé API du site OpenWeatherMap au fichier "config.py"!
> [!NOTE]
> Ce code s'est exécuté et a fonctionné correctement sous Windows 10 et Python version 3.12.1