rename filter to Data and fix docs

This commit is contained in:
apepenkov 2023-11-09 21:21:13 +03:00
parent adeb5f8d73
commit 9efbeb4543
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
from .combinators import All, Any, Filter, Not
from .common import Chats, ChatType, Senders
from .messages import Command, Forward, Incoming, Media, Outgoing, Reply, Text
from .callback import CallbackData
from .callback import Data
__all__ = [
"All",
@ -18,5 +18,5 @@ __all__ = [
"Outgoing",
"Reply",
"Text",
"CallbackData",
"Data",
]

View File

@ -4,9 +4,9 @@ from .combinators import Combinable
from ..event import Event
class CallbackData(Combinable):
class Data(Combinable):
"""
Filter by ``event.data`` using a full bytes match, used for callback events :class:`events.ButtonCallback`
Filter by ``event.data`` using a full bytes match, used for callback events :class:`telethon.events.ButtonCallback`
It checks if ``event.data`` is equal to the data passed to the filter.

View File

@ -22,7 +22,7 @@ from .._impl.client.events.filters import (
Reply,
Senders,
Text,
CallbackData,
Data,
)
__all__ = [
@ -40,5 +40,5 @@ __all__ = [
"Reply",
"Senders",
"Text",
"CallbackData"
"Data"
]