mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-25 07:36:27 +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)
|
await update.callback_query.answer(text, show_alert=True)
|
||||||
return None
|
return None
|
||||||
return await message.reply_text(text, reply_markup=buttons, allow_sending_without_reply=True)
|
return await message.reply_text(text, reply_markup=buttons, allow_sending_without_reply=True)
|
||||||
except ConnectTimeout:
|
except TimedOut:
|
||||||
logger.error("httpx 模块连接服务器 ConnectTimeout 发送 update_id[%s] 错误信息失败", update.update_id)
|
logger.error("发送 update_id[%s] 错误信息失败 连接超时", update.update_id)
|
||||||
except BadRequest as exc:
|
except BadRequest as exc:
|
||||||
logger.error("发送 update_id[%s] 错误信息失败 错误信息为 [%s]", update.update_id, exc.message)
|
logger.error("发送 update_id[%s] 错误信息失败 错误信息为 [%s]", update.update_id, exc.message)
|
||||||
except Forbidden as exc:
|
except Forbidden as exc:
|
||||||
|
Loading…
Reference in New Issue
Block a user