Commit graph

55 commits

Author SHA1 Message Date
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
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
unn4m3d 545e736808 Catch PhoneMigrationException in IsPhoneRegisteredAsync 2016-11-27 19:37:15 +10:00
Afshin Arani 6f9c328349 Add Cloud Password Support 2016-11-16 17:01:00 +03:30
Eugene Timokhov 8b2f227142 Added possibility to do ping request (SendPingAsync method) 2016-11-07 02:40:19 +03:00
Ilya Pirozhenko 24a9ea1ed9 Merge pull request #277 from knocte/friendlerAuthTestFailures
Friendlier exceptions for Auth testing
2016-10-31 11:12:36 +03:00
Andres G. Aragoneses f062c0a7a1 Friendlier exceptions for Auth testing
This change also lets you write the auth code in the
app.config file without the need to recompile/debug.
2016-10-31 00:17:03 +08:00
Andres G. Aragoneses 34e89f3f37 Require some parameters as non empty & not null before proceeding 2016-10-30 23:34:44 +08:00
Andres G. Aragoneses a029c33e34 TelegramClient ctor: move null checks earlier
This way we avoid creating a FileSessionStore object
or initializing the TLContext if API credentials are
not supplied, to be on the safe side.
2016-10-30 23:34:33 +08:00
Andres G. Aragoneses c1305ada65 Rename MigrationNeededException to PhoneMigrationException
There are different kind of MIGRATE errors that could be
thrown by the Telegram API, as evidenced by this recent
change:
b06f8a8e11

So this rename tries to make it consistent to the new
exception names:
* FILE_MIGRATE_x -> FileMigrationException
* USER_MIGRATE_y -> UserMigrationException
* PHONE_MIGRATE_z -> PhoneMigrationException
2016-10-30 15:57:45 +08:00
Ilya P b06f8a8e11 Added File-Migrate feature 2016-10-29 11:47:18 +03:00
Afshin Arani 8c2cab48f4 Change TLDialogs to TLAbsDialogs 2016-10-26 20:13:19 +03:30
Andres G. Aragoneses 0e32291d11 Tests: show a more meaningful exception when running for 1st time
Instead of throwing a System.FormatException, capture the URL
thrown by the library itself so that the developer configures
the API_ID and API_HASH and places them in the app.config file.
2016-10-23 23:23:10 +08:00
Ilya P f6ad50ce94 - added getFile method 2016-10-23 13:29:18 +03:00
Ilya P 1d6035aeb7 - fix file Uploader
- refactor file uploader
- added test for file uploading
2016-10-23 13:02:44 +03:00
Andres G. Aragoneses 77867b44e6 Use better exception handling
Parsing the message of an exception to decide what to do
next is a bad practice, because it's easy that the message
might be changed by mistake in the future. To enforce the
coupling in a stronger way it's better to use exceptions
of different type depending on the kind of error, so that
we rely on the compiler enforcing the behaviour when doing
changes in this error handling areas in the future.

This also makes the code a bit more simple and readable.
2016-10-22 22:00:15 +08:00
Ilya P 40c1725e41 - Layer 53
- Fix bug in generator
- Fix DC switching
- change default server
2016-10-15 13:35:54 +03:00
Ilya P 066e9cacfe - Updated README 2016-10-11 17:31:30 +03:00
Ilya P 0351c0f1df Add AsyncSuffix to methods 2016-10-11 16:32:38 +03:00
Ilya P 2ffa954246 Fixes 2016-10-11 16:28:57 +03:00
Afshin Arani 6af7c66a81 Redesign Everything 2016-09-24 17:08:26 +03:30
Afshin Arani 1c2e354967 Update Everything 2016-09-22 17:01:59 +03:30
steavy29 78e3a7794f Merge fix. 2016-09-14 14:57:07 +03:00
Ilya Pirozhenko 8411235fe1 Merge branch 'pr/203'
Conflicts:
	README.md
	TLSharp.Core/TelegramClient.cs
	TLSharp.Tests/TLSharpTests.cs
2016-09-13 22:24:00 +03:00
Ilya Pirozhenko 148828edc1 Merge branch 'pr/198'
Conflicts:
	TLSharp.Tests/TLSharpTests.cs
2016-09-13 22:17:31 +03:00
steavy29 1c31794751 Added GetUpdatesDifference and GetUpdatesState functions implementations. 2016-09-13 13:34:32 +03:00
steavy29 ccf2008404 Added implementation of AddChatUser/DeleteChatUser/LeaveChat 2016-09-09 19:56:47 +03:00
steavy29 98f014a49d Implemented CreateChat. Fixed MessageServiceConstructor - migrated it from api layer level 16 to 23. 2016-09-08 14:35:25 +03:00
steavy29 c48109eee3 Added SignUp implementation. 2016-09-06 18:37:05 +03:00
David Woakes 089f80fcce Add contacts.GetContacts method to client 2016-07-21 06:57:15 +01:00
David Woakes 15a51818f9 Fix spelling of Receive 2016-07-20 08:09:27 +01:00
David Woakes 7c8d5e089e Make line endings consistent (LF) 2016-07-20 07:26:55 +01:00
David Woakes 8026bd79dc Fix issues with GetDialogs
Default value of max_id = 0 returns all dialogs
Should return a class with lists of dialog, messages, chats and users.
Add UserForeignConstructor to list of constructors
Add missing detail to DialogConstructor (PeerNotifySettings)
Unpack datastream completely to avoid issue with Ionic exception causing
problems in userForeign parsing
Use more recent code for Dialog construction
2016-07-19 14:47:08 +01:00
Ilya Pirozhenko b869a4f617 Merge pull request #156 from Starli0n/master
Add GetFile() method
2016-06-27 17:23:37 +03:00
Jesus 6365297aaf UserFullConstructor : UserFull no accepts self id.
Added test method to GetUserFull
Added info to README.md
2016-05-18 12:55:22 +02:00
Starli0n ee4fbef8a9 Add GetFile() method 2016-05-17 14:22:14 +02:00
ahmadali shafiee 23404f751d argument change
it looks better
2016-04-21 15:30:40 +04:30
ahmadali shafiee 4a44709150 get apiHash and apiId in the constructor 2016-04-18 15:35:30 +04:30
ahmadali shafiee 504b63a6d7 formatting code (ctrl + k + d) 2016-04-18 15:20:57 +04:30
Ilya Pirozhneko 103e41fb2b Updates 2016-02-07 13:28:41 +03:00
Ilya Pirozhneko 84cbe0afc8 Updated readme 2016-02-04 17:05:48 +03:00
Ilya Pirozhneko 69700fdad0 Small improvements 2016-02-04 16:04:31 +03:00
Ilya Pirozhneko 9cc6942088 Added tests and fixes to SendMediaFunctionality and GetHistory 2016-02-03 22:36:39 +03:00
Ilya Pirozhneko c77cfc064d Add by userName 2016-02-01 23:58:51 +03:00
Ilya Pirozhneko 1dce594e43 - Update layer to 23
- Start implementing get user by userName
2016-02-01 23:39:39 +03:00
Ilya Pirozhneko e281f281dd Improved import contact method 2016-02-01 23:06:15 +03:00