Commit graph

42 commits

Author SHA1 Message Date
Wizou 125c1caeeb Alternate simpler byte[] callback session store 2024-02-18 17:41:30 +01:00
Wizou 2d7a64fc2d API Layer 169 (https://corefork.telegram.org/api/layers): Channel appearance, giveaway prize/winners, premium gift payments, stories reposts, bot reactions and more... (https://t.me/tginfoen/1804) 2023-12-23 20:39:48 +01:00
Wizou e6fa972295 Fix #216: The old salt should be accepted for a further 1800 seconds 2023-12-18 00:01:07 +01:00
Wizou 8a9f886b62 Fix Naming Styles 2023-07-08 01:34:31 +02:00
Wizou 30618cb316 Implement Future Salts mecanism to prevent replay attacks 2023-05-02 22:49:38 +02:00
Wizou 9af6404eff Now throwing WTException. Class hierarchy is TL.RpcException : WTelegram.WTException : ApplicationException 2023-04-02 13:44:23 +02:00
Wizou 86796ebf0c Correctly dispose session store on ctor exception (#128) 2023-02-26 17:09:45 +01:00
Wizou d18b3853e1 Various minor improvements 2022-10-14 11:20:21 +02:00
Wizou 9b7e4293d8 Removed compatibility with legacy (pre-2.0.0) session files 2022-08-11 19:39:18 +02:00
Wizou 1299e27cab Added method to DisableUpdates 2022-07-12 01:31:18 +02:00
Wizou 08f58e3d0a Fixed "ignoring old msg_id" warnings on session start 2022-07-01 12:18:13 +02:00
Wizou a8d2dfcfa1 Improve security by preventing replay attacks 2022-05-19 01:32:22 +02:00
Wizou f339fe1160 lock sessionStore while updating/writing buffer to store
(useful to avoid buffer copy for custom stores)
2022-03-20 13:09:25 +01:00
Wizou f282d270ae Retry API call once on error -503 Timeout 2022-02-24 16:44:27 +01:00
Wizou 1b1243a758 fix #27: compatibility with Mono/Android 2022-02-04 02:51:14 +01:00
Wizou cdba0f7088 optimize session writes 2022-01-27 17:34:16 +01:00
Wizou 176809a5be Support for custom sessionStore 2022-01-26 22:00:52 +01:00
Wizou 12850182ff fix #25: possible NullReferenceException with Document.LargestThumbSize
fix undisposed FileStream on broken session file.
2022-01-26 11:08:33 +01:00
Wizou 582027e800 some renaming 2022-01-25 23:16:28 +01:00
Wizou 733d106265 store api_id in session file. optional session_key (=api_hash by default) as encryption key 2022-01-25 16:37:09 +01:00
Wizou 8e962178f9 Improved session file writes 2022-01-23 01:28:10 +01:00
Wizou 6bdb0b9cc7 reduce allocations for encryption 2022-01-07 01:14:16 +01:00
Wizou 4739c9f539 Fix risk of having only WTelegram.session.tmp if killing the program in the middle of Delete/Move
(that's what File.Replace was trying to avoid!!)
2021-12-30 23:43:00 +01:00
Rinat Abzalov 62dad83370 Fix System.IO.IOException: 'Unable to remove the file to be replaced. ' #10
Based on: 00416bc92f
2021-12-13 14:07:17 +01:00
Wizou e1132f653b Handle BadMsgNotification 32/33 by renewing session 2021-12-04 00:14:15 +01:00
Wizou d0be053707 We don't need to store full User in session file anymore 2021-11-07 09:09:15 +01:00
Wizou a473475e11 Removed unused _sem in Session 2021-10-20 00:24:50 +02:00
Wizou e7c5d2eb27 Better IPv6 support/fallback. Support RpcError in response to an API returning an array 2021-10-01 02:22:26 +02:00
Wizou d4c373d95f Nullable ctor: Empty classes are now converted into/from a null value. This simplifies the hierarchy 2021-09-30 03:40:08 +02:00
Wizou 52fb2a7831 Fix SHA corruption due to concurrent use of static instance 2021-09-29 04:38:39 +02:00
Wizou da5098e8d5 MULTIPLE-CONNECTION! First version that implement parallel active connections to DCs (through Client instances dependent of the main Client instance)
Also improved on:
- reconnection/retry/resent strategy
- start of multiple parallel downloads triggering a new DC connection
2021-09-28 16:12:20 +02:00
Wizou 66757ccd0b fix MT issue in session.Save 2021-09-27 17:08:22 +02:00
Wizou 6770f66270 Fix issue with session file corruption 2021-09-27 03:20:58 +02:00
Wizou c789308d1e Avoid unnecessary Auth_ExportAuthorization. More reliable DownloadFileAsync 2021-09-25 19:43:39 +02:00
Wizou 35786ef02a Support multi-DC sessions 2021-09-23 09:27:52 +02:00
Wizou 223d8984cf Serialize User to Json inside session file to prevent future breaking changes 2021-09-18 07:26:06 +02:00
Wizou 866c562d81 Add compatibility with .NET Standard 2.0 (multi-target) 2021-08-16 22:30:45 +02:00
Wizou 897b61747a Reactor system for parallelization of requests 2021-08-13 00:28:34 +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
[-_-Mr_Veil-_-] 00211e5b5c Migrate to .NET Standard 2.0 2021-08-08 17:35:05 +03:00
Wizou 4dd03c66a6 Move code to src folder 2021-08-07 06:25:51 +02:00
Renamed from Session.cs (Browse further)