mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Removed Placeholder, break down comparison
This commit is contained in:
parent
d3cb386a6f
commit
12cc6fa4eb
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user