Commit graph

255 commits

Author SHA1 Message Date
Wizou 30bc536ebc Removed annoying Peer implicit long operator (reverts #229)
Some checks failed
Dev build / build (push) Has been cancelled
2025-11-09 22:32:47 +01:00
Wizou d6fdcab440 ToBytes TL.Serialization helper.
Warning: do not use for long-term storage because TL structures can change in future layers and may not be deserializable
2025-11-05 15:00:48 +01:00
Wizou 9ec2f31f72 Delete alt-session on AUTH_KEY_UNREGISTERED for renegociation 2025-10-31 18:21:11 +01:00
Wizou 48d005b605 Encryption class public + Methods table
Some checks failed
Dev build / build (push) Has been cancelled
2025-10-10 20:27:42 +02:00
Wizou a9bbdb9fc4 Try to improve diagnostics/handling of weird email login case (#331) 2025-08-27 00:06:30 +02:00
Wizou e16e39bfba Avoid using obsolete DataCenter info on alt-DC connect 2025-08-09 02:43:43 +02:00
Wizou 25990a8477 Fix Salts management 2025-06-29 16:01:05 +02:00
Wizou 3ff1200068 Use signed DcId values (improved logs) 2025-06-26 22:02:26 +02:00
Wizou 04e043222e ParallelTransfers property can configure how many parallel download/upload of file chunks can occur at the same time. Default is 2 (optimal for non-premium accounts), was 10 in previous versions. 2025-06-24 19:11:14 +02:00
Wizou d49d620edd Fixed possible concurrency issue on msgId/seqno, that could freeze protocol or cause BadMsgNotification (during downloads for example)
Thanks goes to @Deeps00009
2025-06-24 19:01:52 +02:00
Wizou 6d238dc528 Store less stuff in session data and reduce save frequency for better performance. 2025-04-06 19:48:43 +02:00
Wizou f495f59bc8 Use media DC for uploads 2025-04-02 05:58:04 +02:00
Wizou 0867c044fa Handle CONNECTION_NOT_INITED 2025-03-12 02:17:36 +01:00
Wizou e67a688baa Building with Github Actions 2025-03-03 02:02:06 +01:00
Wizou 2451068a71 API Layer 195: searchStickers, Bot API 8.1 (star referral program) 2024-12-04 20:10:05 +01:00
Wizou 48a1406acc Raise OwnUpdates for Messages_InvitedUsers & Payments_PaymentResult 2024-11-22 16:27:21 +01:00
Wizou ccad6f9f31 Limit parallel transfers to 1 in HTTP mode 2024-11-21 17:08:08 +01:00
Wizou fc441121a3 Improved HTTP mode reliability 2024-11-18 13:44:32 +01:00
Wizou 9ad6220527 Fix potential deadlock in HTTP mode 2024-11-14 13:18:05 +01:00
Wizou cb8bcb5b8b Fix MTProxy broken since HTTP support 2024-10-25 01:35:17 +02:00
Wizou 62c105959c Improved HTTP support 2024-10-07 02:43:07 +02:00
Wizou a19db86c1d Support for connecting to Telegram via on-demand HTTP requests instead of permanent TCP connection: client.HttpMode (experimental) 2024-09-30 02:15:10 +02:00
Wizou f0a649c147 Fix #284: OnOwnUpdates null warning on Messages_AffectedMessages 2024-09-08 19:16:23 +02:00
Wizou b6cb62793c Fix infinite recursion on Dispose (#274) 🎬Take 3 2024-09-07 18:50:07 +02:00
Wizou 68a1c8650f Use more ResetAsync/DisposeAsync internally for better async 2024-09-07 18:43:52 +02:00
Wizou be7027b318 more IAsyncDisposable stuff 2024-09-07 01:59:27 +02:00
Wizou 9fe6a9d74f Added DisposeAsync, ResetAsync. Now Login() starts Reactor on current context, useful for UI access within OnUpdates/OnOther (LoginUserIfNeeded was already doing that) 2024-09-06 18:22:05 +02:00
Wizou 9315913519 Fix infinite recursion on Dispose (#274) 🎬Take 2 2024-09-05 18:51:53 +02:00
Wizou a28b984395 Fix infinite recursion on Dispose after downloads (fix #274) 2024-08-10 23:29:08 +02:00
Wizou 9712233c00 Process Downloads really on media DCs, including for the main dc_id (fix #261) 2024-07-20 02:13:56 +02:00
Wizou 1a00ae5a77 TL deserialization errors no longer cause a ReactorError. Renewing session on layer change to prevent old layer messages 2024-06-15 17:35:25 +02:00
Wizou 85cc404213 Prevent recursive issue when client is disposed in OnOther 2024-06-15 02:35:38 +02:00
Wizou c8a0882587 Fix: ReactorError wasn't always triggered correctly on connection lost 2024-05-28 00:37:58 +02:00
Wizou 3c19be32c7 New method LoginWithQRCode (fix #247) 2024-04-27 12:34:32 +02:00
Wizou 69f9e0c418 better handle sendSemaphore on client dispose scenario 2024-04-24 17:25:45 +02:00
Wizou 6dcce7f784 Fix support for email code login 2024-04-17 17:33:48 +02:00
Wizou 8c271f50f6 Fix crash on Gzipped Vector result 2024-04-14 13:25:45 +02:00
Wizou abeed476e7 several enhancements:
- fixed UpdateAffectedMessages on wrong mbox
- MarkdownToEntities allow reserved characters in code block
- collector system more flexible & open
- improved UpdateManager resilience
- some MTPG improvements
2024-04-03 21:05:07 +02:00
Wizou 210a3365e5 Introducing the UpdateManager to streamline the handling of continuous updates (see FAQ) 2024-03-30 17:09:54 +01:00
Wizou 3d224afb23 Renamed OnUpdate => OnUpdates (with temporary compatibility shim) 2024-03-29 16:42:58 +01:00
Wizou 3918e68945 Using a source generator to make the library compatible with NativeAOT trimming. 2024-03-28 12:13:56 +01:00
Wizou e2323092dc net8.0 target, compatible with AOT 2024-03-26 12:07:03 +01:00
Wizou 9fe1196606 Mark most classes as sealed & partial 2024-03-26 02:30:16 +01:00
Wizou 018f535655 Fix "wrong timestamp" issues when first msgId is too much in the past 2024-03-23 17:58:46 +01:00
Wizou 3304ba4bac raise event for Pong and Affected* 2024-03-23 17:51:00 +01:00
Wizou fa83787e7f CollectUsersChats update user/chat fields from min info (improved) 2024-03-19 11:50:58 +01:00
Wizou 1d00dc2f9b minor change 2024-03-19 11:48:45 +01:00
Wizou 659906ce01 CollectUsersChats update user/chat fields from min info 2024-03-13 05:03:15 +01:00
Wizou d00725e234 use primary constructors 2024-03-12 19:07:48 +01:00
Wizou 8eb5b29d97 using primary constructors, and more [] syntax 2024-03-08 12:07:37 +01:00