2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Removed Placeholder, break down comparison

This commit is contained in:
ColinShark 2019-06-02 00:13:52 +02:00
parent d3cb386a6f
commit 12cc6fa4eb

View File

@ -348,9 +348,9 @@ class Filters:
Pass the data you want to filter for. Pass the data you want to filter for.
""" """
def f(_, cb): def f(flt, cb):
return bool(cb.data and cb.data == _.d) 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)) dan = create("Dan", lambda _, m: bool(m.from_user and m.from_user.id == 23122162))