Skip to content

How to set a proxy before logging in #92

Answered by eaglekindoms
iselien asked this question in Q&A
Discussion options

You must be logged in to vote

@yovelas you can use this function to use proxy, after start the client.
like this:

// Start the client
        client.start(authenticationData);
        TdApi.AddProxy proxy = new TdApi.AddProxy(
                "127.0.0.1", 10809, true, new TdApi.ProxyTypeHttp()
        );
        client.send(proxy, result -> {
            System.out.println(result.get());
        });

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cavallium
Comment options

You must be logged in to vote
1 reply
@xxulin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #91 on May 22, 2022 12:55.