From 12cc6fa4eb038af53621e14cf0b0565cc3b5db6f Mon Sep 17 00:00:00 2001 From: ColinShark Date: Sun, 2 Jun 2019 00:13:52 +0200 Subject: [PATCH] Removed Placeholder, break down comparison --- pyrogram/client/filters/filters.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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))