tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.07k stars 1.44k forks source link

disableProxy not work before authorization #1897

Closed aghasi closed 2 years ago

aghasi commented 2 years ago

I'm using TDLib 1.7.11 (json version) in python. I'm using disableProxy after calling td_json_client_create. The disableProxy not work at all, while the document says that:

Disables the currently enabled proxy. Can be called before authorization.

It works after authorization!!!

levlam commented 2 years ago

disableProxy definitely works before authorization. Why do you think that it doesn't work?

levlam commented 2 years ago

Probably, you expected it to return before setTdlibParameters and checkDatabaseEncryptionKey without actually opening any TDLib instance. There is no way it could do something reasonable before successful call to checkDatabaseEncryptionKey, but you definitely can call it beforehand.