steavy29 / Telegram.Net

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

Error in Connect() #2

Closed elyfran closed 8 years ago

elyfran commented 8 years ago

I'm assigning all parameters correctly and is occurring error connecting .

Stacktrace: TLSharp.Core.TelegramClient.d__13.MoveNext()

In the Teste only run AuthenticationWorks, DataCenterMigrationErrorHandling and TestConnection the others are in error.

Do u can help me?

steavy29 commented 8 years ago

Please, paste some code which causes error and the error itself. Most likely tests fail because you didn't filled configuration values in app.config.

elyfran commented 8 years ago

first ran the tests with the credentials that are configured in app.config and then tested it with my credentials . the credentials already entered are valid ?

elyfran commented 8 years ago

These settings are valid ?

`

<add key="ApiHash" value="xx"/>
<add key="NumberToAuthenticate" value="xx"/>
<add key="NotRegisteredNumberToSignUp" value=""/>
<add key="NumberToSendMessage" value="xx"/>
<add key="UserNameToSendMessage" value="xx"/>
<add key="NumberToGetUserFull" value="xx"/>
<add key="NumberToAddToChat" value=""/>

`

elyfran commented 8 years ago

+55 = DDI 88 = DDD 99999999 = number

steavy29 commented 8 years ago

Please, update your sources. And please don't use current config. You should provide your own config numbers. Only then you'll be able to get the code you need for authentication. Re. number: try number format without +

elyfran commented 8 years ago

@steavy29

The exception referred to PHONE_MIGRATE_1 ?

elyfran commented 8 years ago

PHONE_MIGRATE_X: the phone number a user is trying to use for authorization is associated with a different data center.

???

steavy29 commented 8 years ago

Please show your config and code.

elyfran commented 8 years ago

`

`

steavy29 commented 8 years ago

Do you receive code or error happens even before that?

elyfran commented 8 years ago

i receved the code.

elyfran commented 8 years ago

I am running the test AuthUser().

steavy29 commented 8 years ago

I`m running the same test with your config. Can you send me the code you just received?

elyfran commented 8 years ago

79532

elyfran commented 8 years ago

I received another sms with: 61248

elyfran commented 8 years ago

now: 38270

steavy29 commented 8 years ago

Ok. I've reproduced exception in protocol with your configuration. Can I use it tomorrow morning to fix the issue?

elyfran commented 8 years ago

Sure. no problem.

steavy29 commented 8 years ago

Fine. I'll update status tomorrow then.

elyfran commented 8 years ago

I'll be waiting. thx ;D

elyfran commented 8 years ago

now receved : 71457

elyfran commented 8 years ago

Now; 72267

steavy29 commented 8 years ago

I`ve pushed fix. Please check it out

elyfran commented 8 years ago

OK. I will now test

elyfran commented 8 years ago

Working perfectly. =D

steavy29 commented 8 years ago

Great. Thanks for reaching me here with this issue.

elyfran commented 8 years ago

Now that this problem: AUTH_KEY_UNREGISTERED.

I am using the method : ImportContactByPhoneNumberAndSendMessage.