From b9d9d17ec4eaa1c31e80e797f84fd73615aa2434 Mon Sep 17 00:00:00 2001 From: Ilya Pirozhenko Date: Wed, 30 Sep 2015 10:24:32 +0800 Subject: [PATCH 1/3] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index a7ec478..0deac39 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ It's a perfect fit for any developer who need to sends data directly to Telegram - [Dependencies](#dependencies) - [Starter Guide](#starter-guide) - [Quick configuration](#quick-configuration) + - [Sending messages set-up](#sending-messages-set-up) - [Using TLSharp](#using-tlsharp) - [Contributing](#contributing) - [FAQ](#faq) @@ -36,6 +37,13 @@ All dependencies listed in [package.conf file](https://github.com/sochix/TLSharp 1. When you're done you should specify phone number in international format for Test purposes in [app.config file]( https://github.com/sochix/TLSharp/blob/master/TLSharp.Tests/app.config) 1. Run the test TestConnection(), if it passed than you successfully setted up a library. +##Sending messages set-up + +1. Firstly create a valid session. Run the `AuthUser` test, and set a breakpoint on `var code = "123"; // you can change code in debugger line`. +2. Replace value of `code` variable with code from Telegram. +3. Continue execution. You'll see created session.dat file. +4. Try to run `SendMessage` test + ## Using TLSharp See tests to undertsand how TLSharp works. From a4bfe5216cf9caaf5adca4e704175007df121203 Mon Sep 17 00:00:00 2001 From: Ilya Pirozhenko Date: Wed, 30 Sep 2015 10:29:29 +0800 Subject: [PATCH 2/3] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0deac39..d080873 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,10 @@ You can contribute! If you have any questions don't afraid to ask! You should change the telegram server address to XX. XX server address you can get from InitResponse. Address should be changed in [this file](https://github.com/sochix/TLSharp/blob/master/TLSharp.Core/Network/TcpTransport.cs) +#### I get an exception: System.IO.EndOfStreamException: Unable to read beyond the end of the stream. All test methos except that AuthenticationWorks and TestConnection return same error. I did every thing including setting api id and hash, and setting server address. + +You should create a Telegram session. See [configuration guide](#sending-messages-set-up) + #### Why does TLSharp lacks future XXXX? Now TLSharp is basic realization of Telegram protocol, you can be a contributor or a sponsor to speed-up developemnt of any feature. From f0ecfdd36a5f18f9d402312c81da6622a582b031 Mon Sep 17 00:00:00 2001 From: Ilya Pirozhenko Date: Thu, 1 Oct 2015 10:52:40 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d080873..6c9161b 100644 --- a/README.md +++ b/README.md @@ -54,9 +54,16 @@ You can contribute! If you have any questions don't afraid to ask! # FAQ -#### I get an error MIGRATE_XX? +#### I get an error MIGRATE_X? -You should change the telegram server address to XX. XX server address you can get from InitResponse. Address should be changed in [this file](https://github.com/sochix/TLSharp/blob/master/TLSharp.Core/Network/TcpTransport.cs) +You should change the telegram server address to X. X server address you can get from InitResponse or from Server addresses list. Address should be changed in [this file](https://github.com/sochix/TLSharp/blob/master/TLSharp.Core/Network/TcpTransport.cs) + +**Server addresses:** +* Server 1: 149.154.175.50:443 +* Server 2: 149.154.167.51:443 +* Server 3: 149.154.175.100:443 +* Server 4: 149.154.167.91:443 +* Server 5: 91.108.56.165:443 #### I get an exception: System.IO.EndOfStreamException: Unable to read beyond the end of the stream. All test methos except that AuthenticationWorks and TestConnection return same error. I did every thing including setting api id and hash, and setting server address.