修改 conversation_error_handler 回复的错误信息

This commit is contained in:
洛水居室 2022-06-19 23:15:43 +08:00
parent 1956d4dc4c
commit e0411d17a8
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -85,7 +85,7 @@ def conversation_error_handler(func: Callable) -> Callable:
except GenshinException as exc:
Log.warning("GenshinException", exc)
await send_user_notification(update, context,
f"获取账号信息发生错误,错误信息为 {str(exc)}请检查Cookie或者账号是否正常")
f"获取账号信息发生错误,错误信息为 {str(exc)}")
return ConversationHandler.END
except BadRequest as exc:
Log.warning("python-telegram-bot请求错误", exc)