Skip to content

iliyasalve/Weather_Telegram_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Weather data is taken using the API from the site OpenWeatherMap

Translation of messages is carried out thanks to the library 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

Les données météo sont récupérées grâce à l'API du site OpenWeatherMap

La traduction des messages s'effectue grâce à la bibliothèque 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages