From 04aada818e4a6482128ff7448a6a8843b7adf0cc Mon Sep 17 00:00:00 2001 From: ColinShark Date: Sat, 1 Jun 2019 23:36:45 +0200 Subject: [PATCH] Less arbitrary name for Filter, Adapt Docstring --- pyrogram/client/filters/filters.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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))