fixed ability to invite other users after unmute
This commit is contained in:
parent
b7b90055a4
commit
b7ae8a5720
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE) ->
|
||||||
elif update.effective_chat.type not in ('supergroup',):
|
elif update.effective_chat.type not in ('supergroup',):
|
||||||
return
|
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
|
# new user join the chat
|
||||||
if update.message.new_chat_members:
|
if update.message.new_chat_members:
|
||||||
for user in update.message.new_chat_members:
|
for user in update.message.new_chat_members:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue