This commit is contained in:
Dan 2018-04-27 20:13:19 +02:00
parent e81ef5a757
commit 18e414e2c1

View File

@ -125,6 +125,8 @@ class Filters:
pinned_message = build("PinnedMessage", lambda _, m: bool(m.pinned_message)) pinned_message = build("PinnedMessage", lambda _, m: bool(m.pinned_message))
"""Filter service messages for pinned messages.""" """Filter service messages for pinned messages."""
# TODO: Add filters for reply markups
@staticmethod @staticmethod
def command(command: str or list, prefix: str = "/", separator: str = " "): def command(command: str or list, prefix: str = "/", separator: str = " "):
"""Filter commands, i.e.: text messages starting with "/" or any other custom prefix. """Filter commands, i.e.: text messages starting with "/" or any other custom prefix.