diff --git a/plugins/callbacks/emoji_button.py b/plugins/callbacks/emoji_button.py index 836c0c8..e84f484 100644 --- a/plugins/callbacks/emoji_button.py +++ b/plugins/callbacks/emoji_button.py @@ -62,7 +62,7 @@ async def callback_emoji_button(app: PyroClient, callback: CallbackQuery): await app.restrict_chat_member( chat_id=group.id, user_id=callback.from_user.id, - permissions=ChatPermissions(can_send_messages=True), + permissions=callback.message.chat.permissions, ) return