Telethon/telethon
Lonami Exo ceb37cd4c5 Move auth_key generation and InitConnection logic to .invoke()
The reasoning behind this is that .connect() should not call
any request at all, it should only connect to the servers
although it currently still calls GetStateRequest.

There were some issues (#291, #360) where the auth_key was None
(possibly due to .connect() returning False), so this may
fix some of the cases where it returned False. This way we also
ensure that we always have an auth_key, or even if it "breaks"
(it's not the right key for the server anymore).

A few additional changes have been introduced to accommodate
this, such as moving InitConnection logic too or importing auths.
2017-10-24 15:40:51 +02:00
..
crypto Add ._get_cdn_client as alternative ._get_exported_client version 2017-09-30 17:51:07 +02:00
errors Generate errors from PWRTelegram's API 2017-10-20 17:20:05 +02:00
extensions Replace redundant isinstance calls with a tuple parameter 2017-10-13 11:39:34 +02:00
network Fix resending requests on bad salt/msg notification (#369) 2017-10-22 13:13:49 +02:00
tl Fix resending requests on bad salt/msg notification (#369) 2017-10-22 13:13:49 +02:00
__init__.py Use an Enum for the ConnectionMode and support specifying it 2017-09-04 11:24:10 +02:00
helpers.py Use autogen code on the authenticator instead hardcoding requests 2017-09-28 11:36:51 +02:00
telegram_bare_client.py Move auth_key generation and InitConnection logic to .invoke() 2017-10-24 15:40:51 +02:00
telegram_client.py Update docstrings 2017-10-21 16:59:20 +02:00
update_state.py Temporary fix for abusive duplicated updates (closes #336) 2017-10-14 11:37:47 +02:00
utils.py Add missing InputPeerSelf case to .get_input_user 2017-10-24 09:43:59 +02:00