Fix some misleading errors/documentation

This commit is contained in:
Lonami Exo
2017-09-18 09:37:20 +02:00
parent 2a3e5e5ed2
commit e0e3947d2f
2 changed files with 18 additions and 9 deletions

View File

@@ -292,8 +292,7 @@ class TelegramClient(TelegramBareClient):
If no phone or code is provided, then the sole password will be used.
The password should be used after a normal authorization attempt
has happened and an RPCError with `.password_required = True` was
raised.
has happened and an SessionPasswordNeededError was raised.
To login as a bot, only `bot_token` should be provided.
This should equal to the bot access hash provided by