This commit closes #8
This commit is contained in:
parent
f6e85a7a2c
commit
eadbdd1eda
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user