diff --git a/pyrogram/client/filters/filters.py b/pyrogram/client/filters/filters.py index 83e862e6..c8b5b2f8 100644 --- a/pyrogram/client/filters/filters.py +++ b/pyrogram/client/filters/filters.py @@ -346,12 +346,11 @@ class Filters: Parameters: data (``str`` | ``bytes``): Pass the data you want to filter for. - Defaults to None (no data). """ def f(_, cb): return bool(cb.data and cb.data == _.d) - return create("Data", f, d=data) + return create("CallbackData", f, d=data) dan = create("Dan", lambda _, m: bool(m.from_user and m.from_user.id == 23122162))