From b7ae8a5720bfbbd0e67e1ba7de628092c8e3bccc Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 11 Aug 2024 13:12:20 -0400 Subject: [PATCH] fixed ability to invite other users after unmute --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index d767366..8822cc5 100644 --- a/app/main.py +++ b/app/main.py @@ -43,7 +43,7 @@ async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE) -> elif update.effective_chat.type not in ('supergroup',): return - restricted_perms = {"can_send_messages": False, "can_send_other_messages": False} + restricted_perms = {"can_send_messages": False, "can_send_other_messages": False, "can_invite_users": False} # new user join the chat if update.message.new_chat_members: for user in update.message.new_chat_members: