Commit graph

226 commits

Author SHA1 Message Date
salarcode 961637dc4a Merge branch 'master' of https://github.com/salarcode/TLSharp 2017-04-23 21:36:40 +04:30
salar2k f11475badd Implementing IsConnected 2017-04-23 21:33:27 +04:30
Ilya Pirozhenko 8f02d52e65 Update README.md 2017-04-23 21:33:26 +04:30
Barsham Sotoudeh dba1f0fd2a Add missing "offset" parameter in catch block of the GetFile method (#402)
This offset optional parameter was added in a753a1ab13
2017-04-23 21:33:26 +04:30
Ilya Pirozhenko 04ad7a67e9 Update README.md 2017-04-23 21:33:26 +04:30
Starli0n 0c6838740c Custom TCP hanlder to allow HTTP proxy auth 2017-04-23 21:32:52 +04:30
Starli0n ed24638315 Add offset parameter to GetFile() method 2017-04-23 21:32:52 +04:30
Starli0n 756fed8827 Add GetHistoryAsync() to TelegramClient 2017-04-23 21:32:52 +04:30
Mikhail 653b01ecc0 Search user by username with send message test. (#356)
* Search user by username with send message test.
2017-04-23 21:30:18 +04:30
salar2k 91b423c921 Revert "Revert "Tests: Use OfType() instead of GetType() == typeof()""
This reverts commit 14c0c21bcf.
2017-04-23 21:30:18 +04:30
salar2k e99aaa02f5 Revert "Tests: Use OfType() instead of GetType() == typeof()"
This reverts commit 31df61a479.
2017-04-23 21:30:18 +04:30
salar2k ade02105f6 Implementing IsConnected 2017-04-23 21:30:18 +04:30
Ilya Pirozhenko bea1363641 Update README.md 2017-04-23 21:30:18 +04:30
Barsham Sotoudeh 4c1a0b8be0 Add missing "offset" parameter in catch block of the GetFile method (#402)
This offset optional parameter was added in a753a1ab13
2017-04-23 21:30:18 +04:30
Ilya Pirozhenko f26ab3afa7 Update README.md 2017-04-23 21:30:18 +04:30
Starli0n ac6ec0cb8e Custom TCP hanlder to allow HTTP proxy auth 2017-04-23 21:30:18 +04:30
Starli0n 78ae7928e0 Add offset parameter to GetFile() method 2017-04-23 21:30:18 +04:30
Starli0n fe4486e8ee Add GetHistoryAsync() to TelegramClient 2017-04-23 21:30:18 +04:30
Mikhail 703e0a2358 Search user by username with send message test. (#356)
* Search user by username with send message test.
2017-04-23 21:30:18 +04:30
salar2k a792e4dc06 Revert "Revert "Tests: Use OfType() instead of GetType() == typeof()""
This reverts commit 14c0c21bcf.
2017-04-23 21:30:18 +04:30
salar2k a53351d65e Revert "Tests: Use OfType() instead of GetType() == typeof()"
This reverts commit 31df61a479.
2017-04-23 21:30:18 +04:30
Salar Khalilzadeh 25e45b52f6 Tests: Use OfType() instead of GetType() == typeof() 2017-04-23 21:30:17 +04:30
salar2k 9f14656465 Implementing IsConnected 2017-03-02 09:52:12 +03:30
salar2k 2459ce576a Merge branch 'master' of https://github.com/sochix/TLSharp 2017-03-02 09:28:26 +03:30
Ilya Pirozhenko 1697db9d7f Update README.md 2017-02-28 16:45:20 +03:00
Barsham Sotoudeh 26aa35b88a Add missing "offset" parameter in catch block of the GetFile method (#402)
This offset optional parameter was added in a753a1ab13
2017-02-17 23:16:55 +08:00
Ilya Pirozhenko f6ef04ed01 Update README.md 2017-01-29 17:06:22 +03:00
Andres G. Aragoneses fbe8c9bf84 Merge pull request #373 from Starli0n/master
Http proxy authentication
2017-01-27 20:23:44 +08:00
Starli0n 48077961ae Custom TCP hanlder to allow HTTP proxy auth 2017-01-27 10:58:47 +01:00
Andres G. Aragoneses 85c206cc24 Merge pull request #372 from Starli0n/master
Add offset parameter to GetFile() method
2017-01-20 10:03:06 +08:00
Starli0n a753a1ab13 Add offset parameter to GetFile() method 2017-01-19 19:31:27 +01:00
Andres G. Aragoneses 5ddd9a3ad0 Merge pull request #362 from Starli0n/master
Add GetHistoryAsync() to TelegramClient
2017-01-11 17:53:25 +08:00
Starli0n 5e6cf48490 Add GetHistoryAsync() to TelegramClient 2017-01-09 18:25:55 +01:00
Mikhail 47d1c10c9d Search user by username with send message test. (#356)
* Search user by username with send message test.
2016-12-28 22:37:34 +08:00
Andres G. Aragoneses 0428753b2b Merge pull request #350 from salarcode/master
Tests: Use OfType() instead of GetType() == typeof()
2016-12-21 17:07:07 +08:00
salar2k 0672086943 Revert "Revert "Tests: Use OfType() instead of GetType() == typeof()""
This reverts commit 14c0c21bcf.
2016-12-21 12:18:51 +03:30
salar2k 14c0c21bcf Revert "Tests: Use OfType() instead of GetType() == typeof()"
This reverts commit 31df61a479.
2016-12-21 12:18:40 +03:30
salar2k b5528176d4 Merge branch 'master' of https://github.com/salarcode/TLSharp 2016-12-20 12:27:33 +03:30
Salar Khalilzadeh 31df61a479 Tests: Use OfType() instead of GetType() == typeof() 2016-12-20 12:27:15 +03:30
Salar Khalilzadeh dfc89dc3ab Tests: Use OfType() instead of GetType() == typeof() 2016-12-20 12:21:18 +03:30
Andres G. Aragoneses 6d73c0e964 Merge pull request #344 from salarcode/master
Implement IDisposable in TelegramClient class
2016-12-16 15:00:46 +08:00
salar2k fc09dba71b Implementing IDisposable 2016-12-16 10:25:33 +03:30
Ilya Pirozhenko 3ef3ff86ad Merge pull request #323 from mykolasglinskis/master
FloodExceptionShouldNotCauseCannotReadPackageLengthError
2016-12-15 11:00:06 +03:00
Mykolas Glinskis e191b59233 Tests: include testcase for "couldn't read packet length" bug
It seems that after triggering a FloodException, and waiting the required time
to be able to use Telegram again, TLSharp throws an exception. I include the
way to reproduce this bug as an [Ignore]d test with the hope that someone
may help me fix the problem soon.

For reference, the whole stacktrace of the exception was:

Test Name:	FloodExceptionShouldNotCauseCannotReadPackageLengthError
Test FullName:	TLSharp.Tests.TLSharpTestsVS.FloodExceptionShouldNotCauseCannotReadPackageLengthError
Test Source:	D:\Projects\GitHub\TLSharp\TLSharp.Tests.VS\TLSharpTestsVs.cs : line 72
Test Outcome:	Failed
Test Duration:	0:04:30.7467012

Result StackTrace:
at TLSharp.Core.Network.TcpTransport.<Receieve>d__4.MoveNext() in D:\Projects\GitHub\TLSharp\TLSharp.Core\Network\TcpTransport.cs:line 39
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at TLSharp.Core.Network.MtProtoSender.<Receive>d__9.MoveNext() in D:\Projects\GitHub\TLSharp\TLSharp.Core\Network\MtProtoSender.cs:line 139
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at TLSharp.Core.TelegramClient.<ConnectAsync>d__8.MoveNext() in D:\Projects\GitHub\TLSharp\TLSharp.Core\TelegramClient.cs:line 76
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at TLSharp.Tests.TLSharpTests.<CheckPhones>d__54.MoveNext() in D:\Projects\GitHub\TLSharp\TLSharp.Tests\TLSharpTests.cs:line 329
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at TLSharp.Tests.TLSharpTestsVS.<CheckPhones>d__9.MoveNext() in D:\Projects\GitHub\TLSharp\TLSharp.Tests.VS\TLSharpTestsVs.cs:line 68
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at TLSharp.Tests.TLSharpTests.<FloodExceptionShouldNotCauseCannotReadPackageLengthError>d__55.MoveNext() in D:\Projects\GitHub\TLSharp\TLSharp.Tests\TLSharpTests.cs:line 340
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at TLSharp.Tests.TLSharpTestsVS.<FloodExceptionShouldNotCauseCannotReadPackageLengthError>d__10.MoveNext() in D:\Projects\GitHub\TLSharp\TLSharp.Tests.VS\TLSharpTestsVs.cs:line 73
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Result Message:
Test method TLSharp.Tests.TLSharpTestsVS.FloodExceptionShouldNotCauseCannotReadPackageLengthError threw exception:
System.InvalidOperationException: Couldn't read the packet length
2016-11-30 09:34:44 +01:00
Ilya Pirozhenko c22ee8dea6 Merge pull request #317 from unn4m3d/patch-1
Catch PhoneMigrationException in IsPhoneRegisteredAsync
2016-11-28 09:56:40 +03:00
unn4m3d 545e736808 Catch PhoneMigrationException in IsPhoneRegisteredAsync 2016-11-27 19:37:15 +10:00
Ilya Pirozhenko 6b3c96eaa6 Merge pull request #289 from knocte/nunitSupport
Tests: add NUnit support
2016-11-17 09:20:07 +03:00
Ilya Pirozhenko ca6e18b50e Merge pull request #306 from aarani/cloud-password
Add Cloud password Support
2016-11-17 09:17:36 +03:00
Afshin Arani 6f9c328349 Add Cloud Password Support 2016-11-16 17:01:00 +03:30
Afshin Arani 7a6191871d Merge pull request #4 from sochix/master
Update to HEAD
2016-11-16 15:37:22 +03:30