feat(admin_bot): prepend service-message header to broadcasts
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 1m50s

This commit is contained in:
vrubelroman 2026-06-30 20:48:57 +00:00
parent 3ffdbbcdaf
commit 6df47f3082

View file

@ -233,7 +233,7 @@ async def cancel_command(update: Update, context: ContextTypes.DEFAULT_TYPE):
async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE):
"""Обрабатывает все сообщения (на случай если админ отправит что-то)"""
if context.user_data.pop('awaiting_broadcast', False):
text = update.message.text
text = f"📢 Service message\n\n{update.message.text}"
success, failed, total = await do_broadcast(text)
await update.message.reply_text(
f"📤 Рассылка завершена\n\n"