Make .start() more friendly by asking phone if not given

Ping #530
This commit is contained in:
Lonami Exo
2018-01-13 11:54:41 +01:00
parent ef3ea11e38
commit 77301378f8
3 changed files with 13 additions and 4 deletions

View File

@@ -27,7 +27,6 @@ Creating a client
# api_hash from https://my.telegram.org, under API Development.
api_id = 12345
api_hash = '0123456789abcdef0123456789abcdef'
phone = '+34600000000'
client = TelegramClient('session_name', api_id, api_hash)
client.start()