Commit graph

225 commits

Author SHA1 Message Date
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
Wizou b5ca3fcc0e Fix SendAlbumAsync videoUrlAsFile. using [] syntax 2024-03-08 11:52:30 +01:00
Wizou 33f239fc8e Improved GetMessageByLink (topics, cache) 2024-02-25 03:09:49 +01:00
Wizou b9aad47c8e Better log for wrong timestamps 2024-02-21 14:51:26 +01:00
Wizou cf1c29e9ef Little better fix for #233 2024-02-21 02:11:16 +01:00
Wizou 1c298bfa83 Fix #233: "server_address" can hint the dcId in order to reuse existing AuthKey on last-ditch reconnection 2024-02-19 17:08:26 +01:00
Wizou 6a1114ccd5 ConnectAsync can be used for quickResume of sessions (experimental) 2024-02-18 22:50:42 +01:00
Wizou 125c1caeeb Alternate simpler byte[] callback session store 2024-02-18 17:41:30 +01:00
Wizou 48a1322452 Fix #225: RpcError INPUT_METHOD_INVALID_3105996036 when using client.DisableUpdates() 2024-01-15 14:45:58 +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 b6c98658db OnOwnUpdate handler can be used to intercept Updates replies to your API calls 2023-11-30 16:06:37 +01:00
Wizou 5febd2d27b Abort pending requests on Dispose
(I thought it was already the case!?)
2023-11-29 15:16:35 +01:00
Wizou 3861255710 Support additional connection JSON params with Config("init_params") 2023-11-11 12:25:02 +01:00
Wizou 8a9f886b62 Fix Naming Styles 2023-07-08 01:34:31 +02:00
Wizou c631072ae4 Prevent "recursive" MsgContainer 2023-07-06 10:17:29 +02:00
Wizou 472b10f155 Fix unencrypted padding length in Padded Intermediate
(official doc says 0..15 bytes, but server & Android app sends 0..256 bytes)
2023-07-05 05:03:08 +02:00
Wizou d1e583cc86 Prevent "You must connect to Telegram first" during network loss
(closes #157)
2023-05-18 21:50:19 +02:00
Wizou 131fd36106 Fix ReactorError not correctly raised. Added Program_ReactorError example 2023-05-17 18:26:53 +02:00
Wizou 30618cb316 Implement Future Salts mecanism to prevent replay attacks 2023-05-02 22:49:38 +02:00
Wizou 753ac12eb1 OnUpdate is now only for updates. OnOther is used for other notifications 2023-05-01 18:21:03 +02:00
Wizou 9af6404eff Now throwing WTException. Class hierarchy is TL.RpcException : WTelegram.WTException : ApplicationException 2023-04-02 13:44:23 +02:00
Wizou b63829393e Don't raise ReactorError for alt DCs 2023-03-09 22:32:57 +01:00
Wizou 86796ebf0c Correctly dispose session store on ctor exception (#128) 2023-02-26 17:09:45 +01:00
Wizou 7948dbd8e3 Remove deprecated CollectAccessHash system 2023-02-14 11:14:17 +01:00
Wizou b5d7ef311d Small change to support Firebase SMS 2023-02-13 11:29:02 +01:00
Wizou bf7207fa7d Support for Firebase SMS 2023-02-05 15:43:49 +01:00
Wizou f86291117f API Layer 152: emoji pfp, autosave medias, auto-translations, media permissions, Firebase... 2023-02-04 10:36:19 +01:00
Wizou 231bf632e2 Custom emoji Markdown/Html syntax updated for tdlib compatibility
- Markdown: ![x](tg://emoji?id=...)
- Html: <tg-emoji emoji-id="...">
Previous syntaxes are still accepted
Also, changed Github examples links with ts=4
2022-12-05 20:32:32 +01:00
Wizou 42be950896 Alt DC disconnection logged as simple warning 2022-12-02 01:42:39 +01:00
Wizou 2047154d26 doc 2022-11-15 16:20:00 +01:00