mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-26 20:07:27 +00:00
Fix idle() and run() breaking after latest changes
This commit is contained in:
parent
6459ce0a07
commit
184f851625
@ -450,8 +450,6 @@ class Client(Methods, BaseClient):
|
|||||||
while Client.is_idling:
|
while Client.is_idling:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
self.stop()
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""Start the Client and automatically idle the main script.
|
"""Start the Client and automatically idle the main script.
|
||||||
|
|
||||||
@ -464,6 +462,7 @@ class Client(Methods, BaseClient):
|
|||||||
"""
|
"""
|
||||||
self.start()
|
self.start()
|
||||||
self.idle()
|
self.idle()
|
||||||
|
self.stop()
|
||||||
|
|
||||||
def add_handler(self, handler: Handler, group: int = 0):
|
def add_handler(self, handler: Handler, group: int = 0):
|
||||||
"""Register an update handler.
|
"""Register an update handler.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user