Skip to content

tysovkin/Wether

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Telegram bot with weather

This is

Telegram bot that transmits weather information for the specified city. To get weather information, the OpenWeatherMap API is used

We get the API key (Token) from OpenWeatherMap and Telegram. Use your own keys (Token) in the program

How it works

When the user sends a message with the name of the city, the bot checks whether the weather information is in the cache and whether it is valid. If the information is in the cache and it is valid, the bot takes the information. Otherwise, it makes a request to the OpenWeatherMap API to get weather information and stores it in the cache for an hour.

Next, the bot sends the user a message with the weather for the specified city.

Credits

About

telegram bot with weather. Openweather Api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages