TLSharp连接错误

时间:2016-04-02 07:01:32

标签: c# telegram

您好我正在使用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。

0 个答案:

没有答案