您好我正在使用TLSharp发送消息。
public async Task AuthUser()
{
var store = new FileSessionStore();
var client = new TelegramClient(store, "session");
await client.Connect(); // here my application stops and do nothing
var hash = await client.SendCodeRequest(NumberToAuthenticate);
var code = "93463"; // you can change code in debugger
var user = await client.MakeAuth(NumberToAuthenticate, hash, code);
}
我已经在TelegramClient.cs文件中替换了apiHash和apiId。