mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-18 12:02:19 +03:00
rename filter to Data and fix docs
This commit is contained in:
parent
adeb5f8d73
commit
9efbeb4543
|
@ -1,7 +1,7 @@
|
||||||
from .combinators import All, Any, Filter, Not
|
from .combinators import All, Any, Filter, Not
|
||||||
from .common import Chats, ChatType, Senders
|
from .common import Chats, ChatType, Senders
|
||||||
from .messages import Command, Forward, Incoming, Media, Outgoing, Reply, Text
|
from .messages import Command, Forward, Incoming, Media, Outgoing, Reply, Text
|
||||||
from .callback import CallbackData
|
from .callback import Data
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"All",
|
"All",
|
||||||
|
@ -18,5 +18,5 @@ __all__ = [
|
||||||
"Outgoing",
|
"Outgoing",
|
||||||
"Reply",
|
"Reply",
|
||||||
"Text",
|
"Text",
|
||||||
"CallbackData",
|
"Data",
|
||||||
]
|
]
|
||||||
|
|
|
@ -4,9 +4,9 @@ from .combinators import Combinable
|
||||||
from ..event import Event
|
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.
|
It checks if ``event.data`` is equal to the data passed to the filter.
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ from .._impl.client.events.filters import (
|
||||||
Reply,
|
Reply,
|
||||||
Senders,
|
Senders,
|
||||||
Text,
|
Text,
|
||||||
CallbackData,
|
Data,
|
||||||
)
|
)
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
|
@ -40,5 +40,5 @@ __all__ = [
|
||||||
"Reply",
|
"Reply",
|
||||||
"Senders",
|
"Senders",
|
||||||
"Text",
|
"Text",
|
||||||
"CallbackData"
|
"Data"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user