mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-16 19:41:07 +03:00
Use concatenation instead string format
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')
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user