Fix docs example using non-existing variable (#87)

This commit is contained in:
Lonami Exo 2017-05-19 09:46:46 +02:00
parent d6bec7481e
commit 41d1dac1c6

View File

@ -149,9 +149,9 @@
<span class="sh4">from</span> telethon.utils <span class="sh4">import</span> get_input_peer <span class="sh4">from</span> telethon.utils <span class="sh4">import</span> get_input_peer
<span class="sh3"># <b>(1)</b> Use your own values here</span> <span class="sh3"># <b>(1)</b> Use your own values here</span>
api_id = <span class="sh1">12345</span> api_id = <span class="sh1">12345</span>
api_hash = <span class="sh2">'0123456789abcdef0123456789abcdef'</span> api_hash = <span class="sh2">'0123456789abcdef0123456789abcdef'</span>
phone_number = <span class="sh2">'+34600000000'</span> phone = <span class="sh2">'+34600000000'</span>
<span class="sh3"># <b>(2)</b> Create the client and connect</span> <span class="sh3"># <b>(2)</b> Create the client and connect</span>
client = TelegramClient(<span class="sh2">'username'</span>, api_id, api_hash) client = TelegramClient(<span class="sh2">'username'</span>, api_id, api_hash)