浏览代码

Added chat filter in rice module

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

+ 2 - 2
wbb/modules/rice.py

@@ -1,11 +1,11 @@
 from wbb import app
 from wbb.utils import cust_filter
-
+from pyrogram import filters
 __MODULE__ = "Rice"
 __HELP__ = "/rice - To Forward Your Linux Rice To DE_WM's Rice Gallery"
 
 
-@app.on_message(cust_filter.command(commands=("rice")))
+@app.on_message(filters.chat('de_wm') & cust_filter.command(commands=("rice")))
 async def rice(client, message):
     app.set_parse_mode("markdown")
     m = await message.reply_text("```Forwarding!```")