mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 04:30:22 +03:00
Merge 3ca51b6e3a
into a353679796
This commit is contained in:
commit
a632fd01d0
12
README.rst
12
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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user