Explorar el Código

Added chat filter in rice module

TheHamkerCat hace 5 años
padre
commit
f69064f706
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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!```")