Aarav Arora před 5 roky
rodič
revize
dde8dc66c9
1 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. 8 2
      wbb/modules/locks.py

+ 8 - 2
wbb/modules/locks.py

@@ -113,7 +113,7 @@ async def locks_func(_, message):
         )
     elif parameter == "all" and state == "lock":
         await app.set_chat_permissions(chat_id, ChatPermissions())
-        await message.reply_text("Locked Everything.")
+        await message.reply_text(f"Locked Everything in {message.chat.title}")
 
     elif parameter == "all" and state == "unlock":
         await app.set_chat_permissions(
@@ -123,9 +123,15 @@ async def locks_func(_, message):
             can_send_media_messages=True,
             can_send_stickers=True,
             can_send_animations=True,
-            can_invite_users=True
+            can_invite_users=True,
+            can_send_games=True,
+            can_use_inline_bots=True,
+            can_send_polls=True,
+            can_add_web_page_previews=True
                         )
                                  )
+        await message.reply(f"Unlocked Everything in {message.chat.title}")
+                  
 @app.on_message(filters.command("locks") & ~filters.private)
 @capture_err
 async def locktypes(_, message):