From efc92715cc81ad2e6eba2bab3ca59af8776fc746 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 16 May 2020 00:40:05 +0200 Subject: [PATCH] Remove Filters.callback_data (superseded by Filters.regex) @ColinTheShark say goodbye, thanks. --- pyrogram/client/filters/filters.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pyrogram/client/filters/filters.py b/pyrogram/client/filters/filters.py index 50543f6e..83493965 100644 --- a/pyrogram/client/filters/filters.py +++ b/pyrogram/client/filters/filters.py @@ -389,15 +389,4 @@ class Filters: and message.from_user.is_self and not message.outgoing))) - @staticmethod - def callback_data(data: str or bytes): - """Filter callback queries for their data. - - Parameters: - data (``str`` | ``bytes``): - Pass the data you want to filter for. - """ - - return create(lambda flt, cb: cb.data == flt.data, "CallbackDataFilter", data=data) - dan = create(lambda _, m: bool(m.from_user and m.from_user.id == 23122162), "DanFilter")