sochix/TLSharp

TlSharp I haven't done anything yet, but Client.ConnectAsync is an error

jianwei923 opened this issue · 1 comments

public async static void Init()
{
var client = new TelegramClient(123456, "aaabbbbbbccccccc");
await client.ConnectAsync();
}

Error:Unable to write data to the transport connection: The remote host forced closure of an existing connection

Your network is probably hostile toward telegram tcp traffic. We have a WIP commit here that changes the transport layer to websocket that might help you but It can't be said for certain because countries like Iran for example, actively drop any connection to telegram servers.