thehamkercat 5 年之前
父节点
当前提交
1bdc35dd05
共有 1 个文件被更改,包括 1 次插入 和 2 次删除
  1. 1 2
      wbb/modules/greetings.py

+ 1 - 2
wbb/modules/greetings.py

@@ -220,9 +220,8 @@ async def callback_query_welcome_button(_, callback_query):
     """
     global answers_dicc
     data = callback_query.data
-    pending_user = await app.get_users(int(data.split(None, 2)[2]))
     pressed_user_id = callback_query.from_user.id
-    pending_user_id = pending_user.id
+    pending_user_id = int(data.split(None, 2)[2])
     button_message = callback_query.message
     answer = data.split(None, 2)[1]
     if len(answers_dicc) != 0: