Skip to content

Commit

Permalink
Fix callback filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamroy95 committed Oct 20, 2023
1 parent 9f29f60 commit fbdd9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/handlers/moderator.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ async def cmd_unhandled(message: types.Message):

@router.callback_query(
kb.WarnCancelCb.filter(),
MagicData(F.callback_data.user_id == F.callback_query.from_user.id)
MagicData(F.user.tg_id == F.callback_data.from_user.id)
)
async def cancel_warn(callback_query: types.CallbackQuery, callback_data: kb.WarnCancelCb):
from_user = callback_query.from_user
Expand Down

0 comments on commit fbdd9e2

Please sign in to comment.