mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Make it one-line
This commit is contained in:
parent
12cc6fa4eb
commit
5cb709ee75
@ -348,9 +348,6 @@ class Filters:
|
|||||||
Pass the data you want to filter for.
|
Pass the data you want to filter for.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def f(flt, cb):
|
return create("CallbackData", lambda flt, cb: cb.data == flt.data, data=data)
|
||||||
return cb.data == flt.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