mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-16 11: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 .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",
|
||||
]
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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"
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user