tdlight-team / tdlight-java

Complete Bot and Userbot Telegram library based on TDLib
https://t.me/TDLight
GNU Lesser General Public License v3.0
252 stars 43 forks source link

Dummy requests during InternalClient initialization prevent the possibility of a proxy being set before the Login #218

Open lostfoundtm opened 2 months ago

lostfoundtm commented 2 months ago

https://github.com/tdlight-team/tdlight-java/blob/4d77c73e95109e718a7deaa1975dce42ab3e9d58/tdlight-java/src/main/java/it/tdlight/InternalClient.java#L173-L178

As soon as the request is sent, the Login process is initialized, preventing using a proxy upfront.