File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ But it is easy to integrate pyrogram with your favourite scheduler.
99schedule
1010--------
1111
12- Note that schedule is not suitable for async version of pyrogram.
13-
1412.. code-block :: python
1513
1614 import time
@@ -20,20 +18,15 @@ Note that schedule is not suitable for async version of pyrogram.
2018 def job ():
2119 app.send_message(" me" , " Hi!" )
2220
23-
24- schedule.every(10 ).minutes.do(job)
25- schedule.every().hour.do(job)
26- schedule.every().day.at(" 10:30" ).do(job)
27- schedule.every(5 ).to(10 ).minutes.do(job)
28- schedule.every().monday.do(job)
29- schedule.every().wednesday.at(" 13:15" ).do(job)
30- schedule.every().minute.at(" :17" ).do(job)
21+ schedule.every(3 ).seconds.do(job)
3122
3223 with app:
3324 while True :
3425 schedule.run_pending()
3526 time.sleep(1 )
3627
28+ Note that schedule is not suitable for async version of pyrogram.
29+ For more information read `library <https://schedule.readthedocs.io/ >`_ docs.
3730
3831apscheduler
3932-----------
@@ -71,3 +64,4 @@ Apscheduler supports async version of pyrogram too, here is async example:
7164 scheduler.start()
7265 app.run()
7366
67+ For more information read `library <https://apscheduler.readthedocs.io/ >`_ docs.
You can’t perform that action at this time.
0 commit comments