Use concatenation instead string format

Lonami 2017-10-01 20:22:53 +02:00
parent 2c5c5ed6de
commit e89da06eb8

@ -15,7 +15,7 @@ Once you're connected, you'll likely need to `.sign_up()`. Remember [anyone can
from random import randint
dc_id = '2' # Change this to the DC id of the test server you chose
phone = '99966{}{}'.format(dc_id, str(randint(9999)).zfill(4))
phone = '99966' + dc_id + str(randint(9999)).zfill(4)
client.send_code_request(phone)
client.sign_up(dc_id * 5, 'Some', 'Name')
```