Skip to content

Commit 6109129

Browse files
committed
Reword some filter docstrings to better explain their usages
1 parent a15c6dc commit 6109129

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyrogram/client/filters/filters.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ class Filters:
6262
create = create
6363

6464
me = create("Me", lambda _, m: bool(m.from_user and m.from_user.is_self))
65-
"""Filter messages coming from you yourself"""
65+
"""Filter messages generated by you yourself."""
6666

6767
bot = create("Bot", lambda _, m: bool(m.from_user and m.from_user.is_bot))
68-
"""Filter messages coming from bots"""
68+
"""Filter messages coming from bots."""
6969

7070
incoming = create("Incoming", lambda _, m: not m.outgoing)
71-
"""Filter incoming messages."""
71+
"""Filter incoming messages. Messages sent to your own chat (Saved Messages) are also recognised as incoming."""
7272

7373
outgoing = create("Outgoing", lambda _, m: m.outgoing)
74-
"""Filter outgoing messages."""
74+
"""Filter outgoing messages. Messages sent to your own chat (Saved Messages) are not recognized as outgoing."""
7575

7676
text = create("Text", lambda _, m: bool(m.text))
7777
"""Filter text messages."""

0 commit comments

Comments
 (0)