From 774462283ec1487c630ceb5d2b8e45b840df9b8d Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 8 Nov 2018 11:10:24 +0100 Subject: [PATCH] Update service and media filter docstrings --- pyrogram/client/filters/filters.py | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/pyrogram/client/filters/filters.py b/pyrogram/client/filters/filters.py index d470e993..57e48948 100644 --- a/pyrogram/client/filters/filters.py +++ b/pyrogram/client/filters/filters.py @@ -170,13 +170,33 @@ class Filters: """Filter messages containing mentions""" service = create("Service", lambda _, m: bool(m.service)) - """Filter messages containing any of these fields set: *left_chat_member*, *new_chat_title*, *new_chat_photo*, - *delete_chat_photo*, *group_chat_created*, *supergroup_chat_created*, *channel_chat_created*, *migrate_to_chat_id*, - *migrate_from_chat_id*, *pinned_message*""" + """Filter service messages. A service message contains any of the following fields set + + - left_chat_member + - new_chat_title + - new_chat_photo + - delete_chat_photo + - group_chat_created + - supergroup_chat_created + - channel_chat_created + - migrate_to_chat_id + - migrate_from_chat_id + - pinned_message""" media = create("Media", lambda _, m: bool(m.media)) - """Filter messages containing any of these fields set: *audio*, *document*, *photo*, *sticker*, *video*, - *animation*, *voice*, *video_note*, *contact*, *location*, *venue*""" + """Filter media messages. A media message contains any of the following fields set + + - audio + - document + - photo + - sticker + - video + - animation + - voice + - video_note + - contact + - location + - venue""" @staticmethod def command(command: str or list,