Update README.rst

This commit is contained in:
Joscha Götzer 2018-02-23 16:47:30 +01:00 committed by GitHub
parent a353679796
commit 3ca51b6e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()