Better run_loop docstring

This commit is contained in:
Lonami 2018-06-17 19:06:59 +02:00 committed by GitHub
parent a265a3f165
commit 7600462dca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,9 @@ class UpdateMethods(UserMethods):
def run_loop(self):
"""
Runs the event loop.
Runs the event loop until a disconnection occurs, either from
Telegram or by user action. If the loop is already running you
should ``await client.connection_dropped`` instead.
"""
self.loop.run_until_complete(self.connection_dropped)