mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-24 23:29:40 +00:00
🎨 Update Error Handler for Send User Notification
This commit is contained in:
parent
9d8d6deda7
commit
f67eb74c04
@ -48,8 +48,8 @@ async def send_user_notification(update: Update, context: CallbackContext, text:
|
||||
await update.callback_query.answer(text, show_alert=True)
|
||||
return None
|
||||
return await message.reply_text(text, reply_markup=buttons, allow_sending_without_reply=True)
|
||||
except ConnectTimeout:
|
||||
logger.error("httpx 模块连接服务器 ConnectTimeout 发送 update_id[%s] 错误信息失败", update.update_id)
|
||||
except TimedOut:
|
||||
logger.error("发送 update_id[%s] 错误信息失败 连接超时", update.update_id)
|
||||
except BadRequest as exc:
|
||||
logger.error("发送 update_id[%s] 错误信息失败 错误信息为 [%s]", update.update_id, exc.message)
|
||||
except Forbidden as exc:
|
||||
|
Loading…
Reference in New Issue
Block a user