🎨 Update exception notifications

This commit is contained in:
洛水居室 2023-03-17 12:06:58 +08:00
parent ff84757ed3
commit b60094eef0
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -83,6 +83,7 @@ class ErrorHandler(Plugin):
try:
if update.callback_query:
await update.callback_query.answer(content, show_alert=True)
else:
reply_text = await message.reply_text(content, reply_markup=buttons, allow_sending_without_reply=True)
if filters.ChatType.GROUPS.filter(reply_text):
self.add_delete_message_job(reply_text, context=context)