ソースを参照

adding a new module. First Try >.<

Rishabh Narayan 5 年 前
親
コミット
95f874bf90
1 ファイル変更、17 行追加、0 行削除
  1. 17 0
      wbb/modules/nonStciker.py

+ 17 - 0
wbb/modules/nonStciker.py

@@ -0,0 +1,17 @@
+from wbb import app
+from pyrogram import filters
+
+@app.on_message(filters.command('bun'))
+async def bunn(_, message):
+    if message.reply_to_message:
+        await message.reply_to_message.reply_sticker('CAACAgUAAx0CWIlO9AABARyRYBhyjKXFATVhu7AGQwip3TzSFiMAAuMBAAJ7usBUIu2xBtXTmuweBA')
+        await app.send_message(message.chat.id, text="Eat Bun")
+        return
+    if not message.reply_to_message:
+        await message.reply_sticker('CAACAgUAAx0CWIlO9AABARyRYBhyjKXFATVhu7AGQwip3TzSFiMAAuMBAAJ7usBUIu2xBtXTmuweBA')
+        await app.send_message(message.chat.id, text="Eat Bun")
+
+@app.on_message(filters.user('QuotLyBot'))
+async def quotly_hoe(_, message):
+    if not message.sticker:
+        await message.delete()