INNER CODE UNIT · Python
notify_all
PleasePrompto/ductor · ductor_bot/messenger/telegram/app.py:168
async def notify_all(self, text: str) -> None:
for uid in self._config.allowed_user_ids:
try:
await send_rich(self._bot, uid, text, None)
except TelegramAPIError:
# An unreachable recipient (e.g. never pressed /start -> "chat
# not found") must not abort the notification fan-out — or, at
# startup, the whole boot.
logger.warning("Notification to user %d failed, skipping", uid)
class TelegramBot:
"""Telegram frontend. All logic lives in the Orchestrator."""
def __init__(
self,
config: AgentConfig,
*,