feat(admin_bot): prepend service-message header to broadcasts
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 1m50s
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 1m50s
This commit is contained in:
parent
3ffdbbcdaf
commit
6df47f3082
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ async def cancel_command(update: Update, context: ContextTypes.DEFAULT_TYPE):
|
||||||
async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE):
|
async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE):
|
||||||
"""Обрабатывает все сообщения (на случай если админ отправит что-то)"""
|
"""Обрабатывает все сообщения (на случай если админ отправит что-то)"""
|
||||||
if context.user_data.pop('awaiting_broadcast', False):
|
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)
|
success, failed, total = await do_broadcast(text)
|
||||||
await update.message.reply_text(
|
await update.message.reply_text(
|
||||||
f"📤 Рассылка завершена\n\n"
|
f"📤 Рассылка завершена\n\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue