Skip to content

Commit d2179e2

Browse files
committed
Fix Filters.video_note wrong name
1 parent 1e635f0 commit d2179e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrogram/client/filters/filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Filters:
115115
voice = create("Voice", lambda _, m: bool(m.voice))
116116
"""Filter messages that contain :obj:`Voice <pyrogram.Voice>` note objects."""
117117

118-
video_note = create("Voice", lambda _, m: bool(m.video_note))
118+
video_note = create("VideoNote", lambda _, m: bool(m.video_note))
119119
"""Filter messages that contain :obj:`VideoNote <pyrogram.VideoNote>` objects."""
120120

121121
contact = create("Contact", lambda _, m: bool(m.contact))

0 commit comments

Comments
 (0)