mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-23 18:37:26 +00:00
Add Filters.scheduled and Filters.from_scheduled
This commit is contained in:
parent
047fe37860
commit
44a74b9d38
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user