mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 11:23:46 +03:00
ceb37cd4c5
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. |
||
---|---|---|
.. | ||
crypto | ||
errors | ||
extensions | ||
network | ||
tl | ||
__init__.py | ||
helpers.py | ||
telegram_bare_client.py | ||
telegram_client.py | ||
update_state.py | ||
utils.py |