From 3ca51b6e3a62e2630a1580eaf412a8863fc6ecbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joscha=20G=C3=B6tzer?= Date: Fri, 23 Feb 2018 16:47:30 +0100 Subject: [PATCH] Update README.rst --- README.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index febc43cd..7a2183fc 100755 --- a/README.rst +++ b/README.rst @@ -32,12 +32,18 @@ Creating a client from telethon import TelegramClient - # These example values won't work. You must get your own api_id and - # api_hash from https://my.telegram.org, under API Development. + # Replace these example values with your own before starting. + # You must get your own api_id and api_hash from + # https://my.telegram.org, under API Development. + api_id = 12345 api_hash = '0123456789abcdef0123456789abcdef' - client = TelegramClient('session_name', api_id, api_hash) + client = TelegramClient( + 'session_name', # Any string to identify the session + api_id, + api_hash + ) client.start()