fixed ability to invite other users after unmute

This commit is contained in:
Alexander 2024-08-11 13:12:20 -04:00
parent b7b90055a4
commit b7ae8a5720

View file

@ -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: