OpenTl / OpenTl.ClientApi

The Api client library that implements the MtProto 2.0. To connect to servers, such as Telegram
MIT License
80 stars 22 forks source link

JsonReaderException while calling BuildClientAsync #12

Closed jefferyleo closed 6 years ago

jefferyleo commented 6 years ago

image I've encountered the error as seen in the picture above, all the information of Telegram like apphash, AppId, and Public Key I was copied from here. However, I've no idea what cause the error like Newtonsoft.Json.JsonReaderException: 'Unexpected character encountered while parsing value: �. Path '', line 0, position 0.' Which the error is not specific enough, got no idea how to debug on this, I hope someone would help me on this. I'm truly appreciate.

vik-borisov commented 6 years ago

@jefferyleo try to remove session.dat file

jefferyleo commented 6 years ago

@vik-borisov where will be the session.dat file located at? Or just remove the sessionTag?

vik-borisov commented 6 years ago

@jefferyleo in "bin" directory

jefferyleo commented 6 years ago

@vik-borisov Thanks for the help, I'm appreciated. It works now