Commit graph

61 commits

Author SHA1 Message Date
Ilya P 7fd0413c7e - removed non-generic TLVector
- write length of Vector during Serialization
2016-10-23 11:17:59 +03:00
Ilya P f40034ad09 Merge remote-tracking branch 'refs/remotes/origin/master' into pr/250
# Conflicts:
#	TLSharp.Core/TLSharp.Core.csproj
2016-10-23 11:06:00 +03:00
Ilya Pirozhenko 1b90e64ec5 Merge pull request #255 from knocte/netFrameworkVersion
build: switch to lower framework version (4.5.2 -> 4.5)
2016-10-23 10:56:51 +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
Andres G. Aragoneses b129e655f8 build: switch to lower framework version (4.5.2 -> 4.5)
This change is good because:
a) It's better to target a lower target framework version if
the project doesn't necessarily depend on the new features
of the newer versions (so, bigger target audience).
b) It lets compile the project with implementations of the
.NET Framework that are not compatible with 4.5.2. For example,
after this change I can successfully build TLSharp with the
Mono v4.2.1 that comes in my Ubuntu Linux 16.04.1.
2016-10-21 23:58:21 +08:00
Afshin Arani 7d436e3954 Merge pull request #1 from sochix/master
Ilya's Works
2016-10-16 21:22:44 +03:30
Ilya P 40c1725e41 - Layer 53
- Fix bug in generator
- Fix DC switching
- change default server
2016-10-15 13:35:54 +03:00
Afshin Arani a20a73f29f Remove GC.Collect() 2016-10-14 11:48:06 +03:30
Afshin Arani 79b02b9295 Upload Helper 2016-10-14 11:45:33 +03:30
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 b5472c6cd7 Add DownloadFileRequest Class 2016-09-22 17:09:56 +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
Ilya Pirozhenko d6331c2352 Merge pull request #196 from steavy29/signup-impl
Added SignUp implementation.
2016-09-11 14:58:16 +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
steavy29 f98540bd7f Changed session store to return null when couldn't load instead of exception. 2016-09-06 18:20:06 +03:00
David Woakes 089f80fcce Add contacts.GetContacts method to client 2016-07-21 06:57:15 +01:00
David Woakes 397f20298e Fix spelling of Receive 2016-07-20 08:15:28 +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
eaba ac05172359 Merge pull request #2 from chusothe41/master
UserFullConstructor : UserFull no accepts self id.
2016-05-23 15:07:44 +01: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
eaba a2669bfe1a Add files via upload 2016-05-16 09:28:42 +01:00
eaba 9d69d4881b Update TLSharp.Core.csproj 2016-05-16 09:28:09 +01:00
eaba ad94224fb5 Add files via upload 2016-05-16 09:25:07 +01:00
Jesus 5120b77b81 All classes that inherit from User and need "username" property have it.
UserFullConstructor Read changed to not to parse User (by default it parses a UserSelfConstructor, now uses UserRequestConstructor).
In Dictionary UserContactConstructor was signed with 0xf2fb8319 now 0xcab35e18 (That is the real one given by Telegram)
2016-05-13 10:58:25 +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
Ilya Pirozhneko 824ba77e12 Added auto dc switching 2016-01-27 14:02:18 +03:00
Ilya Pirozhenko f56ffc7c6f Merge pull request #65 from siml173/master
new completed method.
2016-01-21 11:51:00 +03:00
ra0o0f 7e18b68d72 UploadFile and SendMediaMessage 2016-01-17 12:46:44 +03:30