From eadbdd1eda8d81ed9fedff82a6716d11da5391a3 Mon Sep 17 00:00:00 2001 From: profitroll Date: Sat, 12 Aug 2023 22:35:36 +0200 Subject: [PATCH] This commit closes #8 --- plugins/callbacks/emoji_button.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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