Skip to content

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

@lostfoundtm

Description

@lostfoundtm

// Send a dummy request to start TDLib
logger.debug(TG_MARKER, "Sending dummy startup request as client {}", clientId);
TdApi.Function<?> dummyRequest = new TdApi.GetOption("version");
this.send(dummyRequest, null, null);
// test Client.execute
this.execute(new TdApi.GetTextEntities("@telegram /test_command https://telegram.org telegram.me @gif @test"));

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions