diff --git a/pyrogram/client/filters/filters.py b/pyrogram/client/filters/filters.py index 1bcc858d..12d5a69e 100644 --- a/pyrogram/client/filters/filters.py +++ b/pyrogram/client/filters/filters.py @@ -348,9 +348,9 @@ class Filters: Pass the data you want to filter for. """ - def f(_, cb): - return bool(cb.data and cb.data == _.d) + def f(flt, cb): + return cb.data == flt.data - return create("CallbackData", f, d=data) + return create("CallbackData", f, data=data) dan = create("Dan", lambda _, m: bool(m.from_user and m.from_user.id == 23122162))