steavy29 / Telegram.Net

Telegram (http://telegram.org) client library implemented in C#.
17 stars 6 forks source link

AUTH_KEY_UNREGISTERED. #3

Closed elyfran closed 8 years ago

elyfran commented 8 years ago

Now that this problem: AUTH_KEY_UNREGISTERED. I am using the method : ImportContactByPhoneNumberAndSendMessage.

if I try to use the method 'MakeAuth' is again generated an exception:

An exception of type 'System.IO.EndOfStreamException' occurred in mscorlib.dll but was not handled in user code

steavy29 commented 8 years ago

Before reauthenticating try deleting your session file. I tried this test both with your config and my own and it worked well.

If problem will still reproduce after deleting sesion file, please show me full stacktrace or some more info so that I could reproduce it.

steavy29 commented 8 years ago

Hey. I think I've fixed it. Can you check, please? Make sure to delete your session.dat file to make sure you are not testing against old config.

elyfran commented 8 years ago

First thanks for the support the resolutions of these problems.

after I tested two different methods the problem occurred below.

and if I try to use connect ( true) the error is triggered : AUTH_KEY_UNREGISTERED

steavy29 commented 8 years ago

I'm currently working on handling of this error(MessageSeqNoTooLow). As a temprary solution you should delete your session.dat

elyfran commented 8 years ago

where i found this file?

steavy29 commented 8 years ago

Near your executable. In case of Tests - Tests/bin/Debug(Release)

elyfran commented 8 years ago

yeah!!! nice =D thx again