瀏覽代碼

fix: condition (#247)

SI_NN_ER_LS 2 年之前
父節點
當前提交
2ede15f7ea
共有 1 個文件被更改,包括 5 次插入 和 0 次删除
  1. 5 0
      wbb/modules/feds.py

+ 5 - 0
wbb/modules/feds.py

@@ -297,6 +297,11 @@ async def fed_log(client, message):
 async def fed_chat(client, message):
     chat = message.chat
     user = message.from_user
+    if message.chat.type == ChatType.PRIVATE:
+        return await message.reply_text(
+            "This command is specific to groups, not our pm!",
+        )
+
     fed_id = await get_fed_id(chat.id)
 
     member = await app.get_chat_member(chat.id, user.id)