Avoid using telethon.sync in the examples

This commit is contained in:
Lonami Exo
2019-08-13 23:33:39 +02:00
parent 61c0e63bbe
commit e1905d0d7a
28 changed files with 283 additions and 217 deletions

View File

@@ -59,7 +59,7 @@ class UpdateMethods:
#
# You will still receive updates, since this prevents the
# script from exiting.
client.run_until_disconnected()
await client.run_until_disconnected()
"""
if self.loop.is_running():
return self._run_until_disconnected()
@@ -218,7 +218,7 @@ class UpdateMethods:
Example
.. code-block:: python
client.catch_up()
await client.catch_up()
"""
pts, date = self._state_cache[None]
if not pts: