mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-30 05:48:14 +00:00
Fix Filters.poll docstrings link to Poll type
This commit is contained in:
parent
1d676a76db
commit
a551f1fe1e
@ -122,7 +122,7 @@ class Filters:
|
|||||||
"""Filter messages sent with a webpage preview."""
|
"""Filter messages sent with a webpage preview."""
|
||||||
|
|
||||||
poll = create("Poll", lambda _, m: m.poll)
|
poll = create("Poll", lambda _, m: m.poll)
|
||||||
"""Filter messages that contain :obj:`Poll <pyrogram.api.types.pyrogram.Poll>` objects."""
|
"""Filter messages that contain :obj:`Poll <pyrogram.Poll>` objects."""
|
||||||
|
|
||||||
private = create("Private", lambda _, m: bool(m.chat and m.chat.type == "private"))
|
private = create("Private", lambda _, m: bool(m.chat and m.chat.type == "private"))
|
||||||
"""Filter messages sent in private chats."""
|
"""Filter messages sent in private chats."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user