mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Avoid using telethon.sync in the examples
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user