TLSharp icon indicating copy to clipboard operation
TLSharp copied to clipboard

Authorization problems

Open Alitrix opened this issue 4 years ago • 0 comments

I wrote a program using your library, but each time it runs it needs to perform the sequence 1.telegramClient = new TelegramClient(m_pApiId, m_pApiHASH); 2.telegramClient.ConnectAsync(reconnect); 3.telegramClient.SendCodeRequestAsync(phone); 4.telegramClient.MakeAuthAsync(m_pPhone, m_pHash, m_pCode);

I got locked for 80000+ seconds after my 10th launch while debugging the app, your description says authorization is required if there is no session.dat file, I checked The file in the directory with the program was created. Tried to perform authorization in another way: 1.telegramClient = new TelegramClient(m_pApiId, m_pApiHASH); 2.telegramClient.ConnectAsync(reconnect); 3.telegramClient.GetContactsAsync(); But I got an error ("29.04.2021 10:16:16::AUTH_KEY_UNREGISTERED"). i.e. every time I run the application, I need to ask for code and register it ? added the .IsUserAuthorized check to the program before requesting the code, its state True, but the error again.

Please tell me which scenario of authorization behavior is correct? What is the sequence of

Alitrix avatar Apr 29 '21 00:04 Alitrix