sochix / TLSharp

Telegram client library implemented in C#
1k stars 380 forks source link

Bad input parameters of tcp handler when i try to use a proxy. #967

Open victor-pashuk opened 4 years ago

victor-pashuk commented 4 years ago

When i try to use a proxy with such code:

var client = new TelegramClient(ApiId, ApiHash,handler: TcpHandler);

.
.
.
  TcpClient TcpHandler(string address, int port)
        {
            var socks = new Socks5ProxyClient("_proxe.adress", _proxy.port);
            var tcp = socks.CreateConnection(address, port);

            return tcp;
        }

I recieve bad input parametres in tcphandler: adress = "49929271795384,\"LastMessageId\":8,\"SequenceNumber\":0,\"U" port = "1702125924"

victor-pashuk commented 4 years ago

All work fine if i use own build of ur library. I think that there are troubles with nuget package