Telegram bot with integrated API
Project description:
A Telegram bot that shows the current weather in your city.
The user can send their geolocation or simply enter the name of the city, after which the bot retrieves data from the OpenWeatherMap API and displays the temperature, weather description, humidity, wind, and time zone.
The bot is implemented with error handling (for example, if the city is not found) and has a user-friendly interaction through buttons.
The system operates stably, supporting both manual input and automatic detection of the user's location.
Technologies used:
Python — main development language
Aiogram — asynchronous framework for Telegram Bot API
OpenWeatherMap API — obtaining weather data
Requests / aiohttp — working with API
JSON — processing server response
Logging — maintaining logs of errors and requests
A Telegram bot that shows the current weather in your city.
The user can send their geolocation or simply enter the name of the city, after which the bot retrieves data from the OpenWeatherMap API and displays the temperature, weather description, humidity, wind, and time zone.
The bot is implemented with error handling (for example, if the city is not found) and has a user-friendly interaction through buttons.
The system operates stably, supporting both manual input and automatic detection of the user's location.
Technologies used:
Python — main development language
Aiogram — asynchronous framework for Telegram Bot API
OpenWeatherMap API — obtaining weather data
Requests / aiohttp — working with API
JSON — processing server response
Logging — maintaining logs of errors and requests