mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-08-25 18:08:32 +00:00
Let .sign_in() call .send_code_request()
This commit is contained in:
@@ -32,8 +32,8 @@ Creating a client
|
||||
client.connect()
|
||||
|
||||
# If you already have a previous 'session_name.session' file, skip this.
|
||||
client.send_code_request(phone)
|
||||
me = client.sign_in(phone, 77777) # Put whatever code you received here.
|
||||
client.sign_in(phone=phone)
|
||||
me = client.sign_in(code=77777) # Put whatever code you received here.
|
||||
|
||||
|
||||
Doing stuff
|
||||
|
||||
Reference in New Issue
Block a user