Skip to content

Commit efc9271

Browse files
committed
Remove Filters.callback_data (superseded by Filters.regex)
@ColinTheShark say goodbye, thanks.
1 parent 27d5caf commit efc9271

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

pyrogram/client/filters/filters.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -389,15 +389,4 @@ def __call__(self, message):
389389
and message.from_user.is_self
390390
and not message.outgoing)))
391391

392-
@staticmethod
393-
def callback_data(data: str or bytes):
394-
"""Filter callback queries for their data.
395-
396-
Parameters:
397-
data (``str`` | ``bytes``):
398-
Pass the data you want to filter for.
399-
"""
400-
401-
return create(lambda flt, cb: cb.data == flt.data, "CallbackDataFilter", data=data)
402-
403392
dan = create(lambda _, m: bool(m.from_user and m.from_user.id == 23122162), "DanFilter")

0 commit comments

Comments
 (0)