From e71831050f30b868452a9ed13cf0b9470bbb68e3 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sat, 25 Nov 2017 18:49:10 +0100 Subject: [PATCH] Fix README.rst never actually running the example --- README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rst b/README.rst index f68f6f3e..a24c06eb 100755 --- a/README.rst +++ b/README.rst @@ -20,6 +20,7 @@ Creating a client .. code:: python + import asyncio from telethon import TelegramClient # 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) me = await client.sign_in(code=input('Code: ')) + asyncio.get_event_loop().run_until_complete(main()) Doing stuff -----------