thehamkercat 5 ani în urmă
părinte
comite
a15e777c42
2 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 2 0
      wbb/modules/stickers.py
  2. 1 2
      wbb/utils/inlinefuncs.py

+ 2 - 0
wbb/modules/stickers.py

@@ -66,6 +66,8 @@ async def sticker_id(_, message):
 async def kang(client, message):
     if not message.reply_to_message:
         return await message.reply_text("Reply to a sticker/image to kang it.")
+    if not message.from_user:
+        return await message.reply_sticker("You are anon admin, kang stickers in my pm")
     msg = await message.reply_text("Kanging Sticker..")
 
     # Find the proper emoji

+ 1 - 2
wbb/utils/inlinefuncs.py

@@ -730,8 +730,7 @@ async def speedtest_init(query):
 @app.on_callback_query(filters.regex("test_speedtest"))
 async def test_speedtest_cq(_, cq):
     if cq.from_user.id not in SUDOERS:
-        await cq.answer("This Isn't For You!")
-        return
+        return await cq.answer("This Isn't For You!")
     inline_message_id = cq.inline_message_id
     await app.edit_inline_text(inline_message_id, "**Testing**")
     loop = asyncio.get_running_loop()