mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
🎨 Update Log
This commit is contained in:
parent
5d6ceaf494
commit
3294648ebd
@ -39,7 +39,10 @@ async def send_user_notification(update: Update, context: CallbackContext, text:
|
||||
update_str = update.to_dict() if isinstance(update, Update) else str(update)
|
||||
logger.warning("错误的消息类型\n %s", json.dumps(update_str, indent=2, ensure_ascii=False))
|
||||
return None
|
||||
logger.info("尝试通知用户 %s[%s] 在 %s[%s] 的错误信息[%s]", user.full_name, user.id, chat.full_name, chat.id, text)
|
||||
if chat.id == user.id:
|
||||
logger.info("尝试通知用户 %s[%s] 错误信息[%s]", user.full_name, user.id, chat.title, chat.id, text)
|
||||
else:
|
||||
logger.info("尝试通知用户 %s[%s] 在 %s[%s] 的错误信息[%s]", user.full_name, user.id, chat.title, chat.id, text)
|
||||
try:
|
||||
if update.callback_query:
|
||||
await update.callback_query.answer(text, show_alert=True)
|
||||
|
Loading…
Reference in New Issue
Block a user