Refactor broadcast confirmation prompt and enhance sync notification handling
- Updated the broadcast confirmation prompt to display the full message instead of a truncated preview. - Improved error handling in the sync process by removing character limits on error details and ensuring comprehensive logging. - Added a notification feature to inform admins about the panel synchronization status, including success and failure details. - Enhanced localization for the broadcast confirmation prompt and added new log messages for sync notifications.
This commit is contained in:
@@ -84,8 +84,7 @@ async def process_broadcast_message_handler(
|
||||
broadcast_entities=entities,
|
||||
)
|
||||
|
||||
preview_snippet = (text[:200] + "...") if len(text) > 200 else text
|
||||
confirmation_prompt = _("admin_broadcast_confirm_prompt", message_preview=preview_snippet)
|
||||
confirmation_prompt = _("admin_broadcast_confirm_prompt", message_preview=text)
|
||||
|
||||
await message.answer(
|
||||
confirmation_prompt,
|
||||
|
||||
Reference in New Issue
Block a user