This commit closes #8

This commit is contained in:
Profitroll 2023-08-12 22:35:36 +02:00
parent f6e85a7a2c
commit eadbdd1eda
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

View File

@ -62,7 +62,7 @@ async def callback_emoji_button(app: PyroClient, callback: CallbackQuery):
await app.restrict_chat_member( await app.restrict_chat_member(
chat_id=group.id, chat_id=group.id,
user_id=callback.from_user.id, user_id=callback.from_user.id,
permissions=ChatPermissions(can_send_messages=True), permissions=callback.message.chat.permissions,
) )
return return