Skip to content

Commit

Permalink
Fixed problem with unmute
Browse files Browse the repository at this point in the history
  • Loading branch information
awtb committed Jul 17, 2021
1 parent 983530f commit 5bf0dc2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion handlers/admin_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ async def cmd_unmute(message: types.Message, user_id: int, full_name: str):
await message.bot.restrict_chat_member(
message.chat.id,
user_id,
permissions=message.chat.permissions # set default permissions
can_send_other_messages=True,
can_send_media_messages=True,
can_send_messages=True,
can_add_web_page_previews=True,
)
await message.reply(
f"You <b>unmuted</b> {mention_user(full_name, user_id)}")
Expand Down

0 comments on commit 5bf0dc2

Please sign in to comment.