2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-23 10:28:00 +00:00

Add Filters.scheduled and Filters.from_scheduled

This commit is contained in:
Dan 2019-09-07 15:57:12 +02:00
parent 047fe37860
commit 44a74b9d38

View File

@ -208,6 +208,12 @@ class Filters:
*animation*, *voice*, *video_note*, *contact*, *location*, *venue*, *poll*.
"""
scheduled = create(lambda _, m: bool(m.scheduled), "ScheduledFilter")
"""Filter messages that have been scheduled (not yet sent)."""
from_scheduled = create(lambda _, m: bool(m.from_scheduled), "FromScheduledFilter")
"""Filter new automatically sent messages that were previously scheduled."""
@staticmethod
def command(
commands: str or list,