|
|
@@ -52,11 +52,11 @@ incorrect_parameters = "Incorrect Parameters, Check Locks Section In Help."
|
|
|
# If url lock is enabled/disabled for a chat
|
|
|
data = {
|
|
|
"messages": "can_send_messages",
|
|
|
- "stickers": "can_send_stickers",
|
|
|
- "gifs": "can_send_animations",
|
|
|
+ "stickers": "can_send_other_messages",
|
|
|
+ "gifs": "can_send_other_messages",
|
|
|
"media": "can_send_media_messages",
|
|
|
- "games": "can_send_games",
|
|
|
- "inline": "can_use_inline_bots",
|
|
|
+ "games": "can_send_other_messages",
|
|
|
+ "inline": "can_send_other_messages",
|
|
|
"url": "can_add_web_page_previews",
|
|
|
"polls": "can_send_polls",
|
|
|
"group_info": "can_change_info",
|
|
|
@@ -121,13 +121,12 @@ async def locks_func(_, message):
|
|
|
ChatPermissions(
|
|
|
can_send_messages=True,
|
|
|
can_send_media_messages=True,
|
|
|
- can_send_stickers=True,
|
|
|
- can_send_animations=True,
|
|
|
- can_invite_users=True,
|
|
|
- can_send_games=True,
|
|
|
- can_use_inline_bots=True,
|
|
|
- can_send_polls=True,
|
|
|
+ can_send_other_messages=True,
|
|
|
can_add_web_page_previews=True,
|
|
|
+ can_send_polls=True,
|
|
|
+ can_change_info=True,
|
|
|
+ can_invite_users=True,
|
|
|
+ can_pin_messages=True,
|
|
|
),
|
|
|
)
|
|
|
await message.reply(f"Unlocked Everything in {message.chat.title}")
|