|
@@ -113,7 +113,7 @@ async def locks_func(_, message):
|
|
|
)
|
|
)
|
|
|
elif parameter == "all" and state == "lock":
|
|
elif parameter == "all" and state == "lock":
|
|
|
await app.set_chat_permissions(chat_id, ChatPermissions())
|
|
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":
|
|
elif parameter == "all" and state == "unlock":
|
|
|
await app.set_chat_permissions(
|
|
await app.set_chat_permissions(
|
|
@@ -123,9 +123,15 @@ async def locks_func(_, message):
|
|
|
can_send_media_messages=True,
|
|
can_send_media_messages=True,
|
|
|
can_send_stickers=True,
|
|
can_send_stickers=True,
|
|
|
can_send_animations=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)
|
|
@app.on_message(filters.command("locks") & ~filters.private)
|
|
|
@capture_err
|
|
@capture_err
|
|
|
async def locktypes(_, message):
|
|
async def locktypes(_, message):
|