mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 12:53:44 +03:00
Fix not all docs using new start method
This commit is contained in:
parent
80f81fe69a
commit
4f441219b1
|
@ -30,11 +30,7 @@ Creating a client
|
||||||
phone = '+34600000000'
|
phone = '+34600000000'
|
||||||
|
|
||||||
client = TelegramClient('session_name', api_id, api_hash)
|
client = TelegramClient('session_name', api_id, api_hash)
|
||||||
client.connect()
|
client.start()
|
||||||
|
|
||||||
# If you already have a previous 'session_name.session' file, skip this.
|
|
||||||
client.sign_in(phone=phone)
|
|
||||||
me = client.sign_in(code=77777) # Put whatever code you received here.
|
|
||||||
|
|
||||||
**More details**: :ref:`creating-a-client`
|
**More details**: :ref:`creating-a-client`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user