mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Update service and media filter docstrings
This commit is contained in:
parent
f6d3db3662
commit
774462283e
@ -170,13 +170,33 @@ class Filters:
|
|||||||
"""Filter messages containing mentions"""
|
"""Filter messages containing mentions"""
|
||||||
|
|
||||||
service = create("Service", lambda _, m: bool(m.service))
|
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*,
|
"""Filter service messages. A service message contains any of the following fields set
|
||||||
*delete_chat_photo*, *group_chat_created*, *supergroup_chat_created*, *channel_chat_created*, *migrate_to_chat_id*,
|
|
||||||
*migrate_from_chat_id*, *pinned_message*"""
|
- 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))
|
media = create("Media", lambda _, m: bool(m.media))
|
||||||
"""Filter messages containing any of these fields set: *audio*, *document*, *photo*, *sticker*, *video*,
|
"""Filter media messages. A media message contains any of the following fields set
|
||||||
*animation*, *voice*, *video_note*, *contact*, *location*, *venue*"""
|
|
||||||
|
- audio
|
||||||
|
- document
|
||||||
|
- photo
|
||||||
|
- sticker
|
||||||
|
- video
|
||||||
|
- animation
|
||||||
|
- voice
|
||||||
|
- video_note
|
||||||
|
- contact
|
||||||
|
- location
|
||||||
|
- venue"""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def command(command: str or list,
|
def command(command: str or list,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user