DEVELOPMENT OF A TELEGRAM BOT FOR AIR RAID ALERTS IN UKRAINE
DOI:
https://doi.org/10.35546/kntu2078-4481.2025.3.2.49Keywords:
Telegram bot, air raid alert, ASP.NET Core, EF Core, mobile notifications, civil protectionAbstract
The full-scale invasion of Ukraine by the Russian Federation since February 24, 2022, has fundamentally reshaped the field of civil protection. One of the critical challenges has been the timely notification of the population about aerial threats, including missile strikes, drone attacks, and air raids. The traditional centralized alerting system, based on Soviet-era sirens, has proven vulnerable: in many cases, sirens failed to function due to damage to power networks, lack of backup energy supply, or operational error.Meanwhile, mobile devices are available to almost every citizen, creating conditions for implementing digital alerting services. For example, the mobile application Air Alert has been installed by more than 15 million users. In addition, the open project alerts.in.ua provides real-time data on air raid alerts through a public API, enabling integration into third- party apps and services.This paper presents the development of a Telegram bot designed to provide automated notifications about air raid alerts. The bot can be added to group chats and channels, where it distributes alerts about the activation, continuation, and deactivation of alarms. The architecture is implemented using ASP.NET Core Web API, with Entity Framework Core employed for database management. Telegram integration is achieved through the official Bot API and the Telegram.Bot library. Data on air raid alerts are sourced from the ukrainealarm.com API.The system maintains a persistent log of notifications and events in a relational database, enabling statistical analysis of alarm frequency and duration as well as auditing the bot’s performance. The paper provides a detailed description of the database schema, code samples, and analysis of key operational scenarios.
References
The Guardian. Ukraine suffers surge in civilian casualties amid Russian drone and missile attacks. 2025. Режим доступу: https://www.theguardian.com/commentisfree/2025/aug/14/ukraine-kyiv-drones-vladimir-putin-missiles
Ajax Systems. Air Alert mobile application. 2024. Режим доступу: https://ajax.systems/ua/air-alert/
Wikipedia. Alerts.in.ua. 2025. Режим доступу: https://en.wikipedia.org/wiki/Alerts.in.ua
Telegram. Bot API. Режим доступу: https://core.telegram.org/bots/api
Ukrainealarm.com. API documentation. Режим доступу: https://api.ukrainealarm.com/swagger/index.html
Wikipedia. Civil defense siren. 2025. Режим доступу: https://en.wikipedia.org/wiki/Civil_defense_siren
Mezha.net. Чернігів впровадив локалізовану систему сирен. 2024. Режим доступу: https://mezha.net/eng/bukvy/chernihiv-s-new-air-raid-alert-sound-sparks-concern-and-feedback
FCC. Wireless Emergency Alerts. 2023. Режим доступу: https://www.fcc.gov/consumers/guides/wireless- emergency-alerts-wea
UNESCO. Crisis communication and digital platforms. 2022. Режим доступу: https://unesdoc.unesco.org/ark:/48223/pf0000381027
Reuters. Sleepless Kyiv: how Ukraine’s capital copes with Russia’s nighttime attacks. 2025. Режим доступу: https://www.reuters.com/business/aerospace-defense/sleepless-kyiv-how-ukraines-capital-copes-with-russias-nighttime-attacks-2025-07-19/







