Commit graph

99 commits

Author SHA1 Message Date
Wizou f66872cb32 Fix unencrypted message sending issue after switch to Intermediate protocol 2021-09-17 15:09:12 +02:00
Wizou 37974c70b7 Convert TL functions to extension methods 2021-09-17 04:53:02 +02:00
Wizou 77a44a86a6 Upgrade to layer 133 2021-09-17 04:38:42 +02:00
Wizou c727f75380 Upgrade to layer 133 (lots of changes, all IDs are now long). You'll need to delete your WTelegram.session files 2021-09-17 03:58:52 +02:00
Wizou 661b5223ac Switch to MTProto Intermediate transport protocol (more lightweight/adequate for TCP) 2021-09-17 03:44:52 +02:00
Wizou a403a462db fetch Updates_GetState on session resuming to subscribe to new updates 2021-09-17 03:25:27 +02:00
Wizou 184a133dce Add Keep-Alive system (will also send pending acks) 2021-09-17 03:12:23 +02:00
Wizou b17349bd75 Added auto-reconnect system, hoping it will help with connection shutdown issues
README: added Troubleshooting guide
2021-09-16 04:47:15 +02:00
Wizou dcd384ed27 Update callback is now void (or async void)
Added ListenUpdates example
2021-09-05 01:08:16 +02:00
Wizou 3b8ec9d910 Constructor's updateHandler parameter is now an Update event 2021-09-03 00:06:48 +02:00
Wizou c5e9e228a7 Updated README about 2nd run prompts.
Validation of logged-in user can be skipped with user_id = -1
(use it cautiously, if you're sure you're not changing user between sessions)
2021-09-02 00:39:06 +02:00
Wizou 832e2143f5 Fix issue with SHA computation under .NET Framework 2021-09-02 00:00:54 +02:00
Wizou cd6d813845 Prevent logging reactor exceptions if expected due to cancellation 2021-09-01 23:11:18 +02:00
Wizou 67285c1c08 Remember the good primes to prevent verifying them twice 2021-09-01 23:03:04 +02:00
Wizou 3701ba6f72 Fix warning: The predefined type "RuntimeHelpers" is defined in multiple assemblies 2021-08-30 16:13:52 +02:00
Wizou 4174b21a83 Experimental collection of id/access_hash pairs 2021-08-30 01:31:08 +02:00
Wizou 0d5546bee5 Improve nuget properties 2021-08-29 23:15:34 +02:00
Wizou ce41af2f84 Validation of logged-in user can also be done by its user_id 2021-08-27 22:44:43 +02:00
Wizou ef93dda3ac Validate preexisting logged-in user. Force reauthorization after AUTH_RESTART 2021-08-27 14:14:24 +02:00
Wizou ccb48e3b3d Logon => Login 2021-08-26 17:46:45 +02:00
Wizou faf24bfb2a UserAuthIfNeeded => LogonUserIfNeeded (+ more robust) 2021-08-25 15:32:25 +02:00
Wizou d4cb4f59d5 Moved UpdateCrc32 to Compat
Added some xml comment
2021-08-25 12:53:36 +02:00
Wizou 166a35f732 added BotAuthIfNeeded 2021-08-24 17:24:46 +02:00
Wizou 53ee143a1d Removed dependency on Crc32.NET 2021-08-24 10:49:32 +02:00
Wizou 593463f46b Upgrade to layer 131
not available as JSON on official website https://core.telegram.org/schema
but found as TL files at https://github.com/telegramdesktop/tdesktop/tree/dev/Telegram/Resources/tl
2021-08-20 14:45:39 +02:00
Wizou 524cb71a65 FLOOD_WAIT_X throw exception if wait is more than 60 seconds 2021-08-20 03:41:00 +02:00
Wizou 2930bd2f9c Added .github folder 2021-08-20 03:20:20 +02:00
Wizou d61234cabc Make MillerRabinIterations configurable for slow devices 2021-08-20 02:33:43 +02:00
Wizou f2a1dbc20d Implement Telegram protocol safety checks 2021-08-20 02:13:58 +02:00
Wizou e205244cf7 Implement RSA_PAD algo for new public keys 2021-08-19 09:28:56 +02:00
Wizou 8aa07011e9 JSON serialization through JSONValue.ToString() 2021-08-19 06:56:55 +02:00
Wizou 6f77e828db Added new package logo from @MrVeil303 (resized 128x128 as recommended by Nuget) 2021-08-18 00:12:33 +02:00
Wizou d35de0f3e2 Version now 0.9.* 2021-08-16 23:08:16 +02:00
Wizou 2a3c64d3d6 fix build 2021-08-16 22:52:33 +02:00
Wizou 866c562d81 Add compatibility with .NET Standard 2.0 (multi-target) 2021-08-16 22:30:45 +02:00
Wizou 2bced387a1 Add helper for Peer ID 2021-08-16 05:56:39 +02:00
Wizou cc83944985 Better handle bare requests. Handle more service messages. 2021-08-14 15:15:41 +02:00
Wizou 39f03ed78f Support for FLOOD_WAIT_X 2021-08-14 08:55:30 +02:00
Wizou 70f9a61e17 updated readme badges 2021-08-13 17:32:07 +02:00
Wizou e01caba162 Fix issue with actual RpcResult in MsgContainer ; Parallelize upload of file parts 2021-08-13 07:06:44 +02:00
Wizou 897b61747a Reactor system for parallelization of requests 2021-08-13 00:28:34 +02:00
Wizou 5e6421d76e simplify ITLFunction<X> into ITLFunction 2021-08-12 12:37:56 +02:00
Wizou 83c0991770 XML comments: add URLs to API pages 2021-08-12 11:01:15 +02:00
Wizou 424e582446 README.md 2021-08-10 14:51:16 +02:00
Wizou 21caecd164 MTProto 2.0 2021-08-10 14:40:41 +02:00
Wizou ba90b47831 Added 2FA support 2021-08-10 08:25:37 +02:00
Wizou 3d540cdb8f Make TL classes partial so we can extend them with helpers in Helpers.TL.cs 2021-08-10 03:12:33 +02:00
wiz0u 9e7d85ec1d
Update README.md for new TL methods 2021-08-09 14:57:22 +02:00
wiz0u 6fb86b7fac
+ chat badge 2021-08-09 14:48:49 +02:00
wiz0u 67fb06f357 release.yml: deploy & notify in stages 2021-08-09 14:43:16 +02:00