mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-22 05:49:45 +03:00
Fix README.rst never actually running the example
This commit is contained in:
parent
e0802d1a2d
commit
e71831050f
|
@ -20,6 +20,7 @@ Creating a client
|
||||||
|
|
||||||
.. code:: python
|
.. code:: python
|
||||||
|
|
||||||
|
import asyncio
|
||||||
from telethon import TelegramClient
|
from telethon import TelegramClient
|
||||||
|
|
||||||
# These example values won't work. You must get your own api_id and
|
# These example values won't work. You must get your own api_id and
|
||||||
|
@ -35,6 +36,7 @@ Creating a client
|
||||||
await client.sign_in(phone_number)
|
await client.sign_in(phone_number)
|
||||||
me = await client.sign_in(code=input('Code: '))
|
me = await client.sign_in(code=input('Code: '))
|
||||||
|
|
||||||
|
asyncio.get_event_loop().run_until_complete(main())
|
||||||
|
|
||||||
Doing stuff
|
Doing stuff
|
||||||
-----------
|
-----------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user