Let .sign_in() call .send_code_request()

This commit is contained in:
Lonami
2017-08-31 10:34:09 +02:00
committed by GitHub
parent 8bff10d956
commit 5f636fdf31
3 changed files with 22 additions and 17 deletions

View File

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