Wizou
b6dbf9564f
Fix excessive stack usage ( #246 )
2024-04-22 17:28:44 +02:00
Wizou
1d07039f04
Fix potential conflict on System.Collections.Immutable
2024-04-16 15:19:12 +02:00
Wizou
8c271f50f6
Fix crash on Gzipped Vector result
2024-04-14 13:25:45 +02:00
Wizou
f3ca76bb8f
fix #242 : correctly handle UserEmpty in ReadTLDictionary
2024-04-04 11:12:59 +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
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
3304ba4bac
raise event for Pong and Affected*
2024-03-23 17:51:00 +01:00
Wizou
d00725e234
use primary constructors
2024-03-12 19:07:48 +01:00
Wizou
33f239fc8e
Improved GetMessageByLink (topics, cache)
2024-02-25 03:09:49 +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
22e64ea3ee
added some helpers
2023-04-21 16:31:57 +02:00
Wizou
d53dc5f07c
Support IDictionary in CollectUsersChats ( #137 )
2023-04-09 14:14:56 +02:00
Wizou
9af6404eff
Now throwing WTException. Class hierarchy is TL.RpcException : WTelegram.WTException : ApplicationException
2023-04-02 13:44:23 +02:00
Wizou
7948dbd8e3
Remove deprecated CollectAccessHash system
2023-02-14 11:14:17 +01:00
Wizou
66d8b75463
deprecate the experimental CollectAccessHash system
2023-01-12 01:37:12 +01:00
Wizou
fd42d3e6df
Upgrade to layer 148: Topics, Usernames, Sticker keywords...
...
+ support for flags2 has_fields
2022-11-01 19:26:40 +01:00
Wizou
a45cd0f44e
various optimizations
2022-10-01 13:56:43 +02:00
Wizou
796b49546e
Provide X number (if any) and generic message in RpcException. Retry only once on -503 error.
2022-04-11 12:08:17 +02:00
Wizou
5c5b8032b9
Fix race condition on pendingRpcs adding/pulling
2022-03-27 22:29:48 +02:00
Wizou
a54cc92618
ctor for Input User/Channel with mandatory access_hash parameter
2022-03-27 22:26:57 +02:00
Wizou
bdbf17aa07
Remove dependencies on Microsoft.Bcl.HashCode & System.Formats.Asn1
2022-02-19 03:30:50 +01:00
Wizou
4e07c03a0b
CollectUsersChats helper for your dictionaries (min-aware). CollectAccessHash won't collect 'min' access_hash.
2022-02-14 02:02:13 +01:00
Wizou
7570732a3f
call CollectField only if CollectAccessHash
2022-02-11 18:05:12 +01:00
Wizou
403969356f
Fix InvalidCast when reading an enum vector
2022-02-07 22:06:10 +01:00
Wizou
8bbb753c32
fix (uint) unboxing on fields "int flags" (improved)
2022-02-06 23:22:51 +01:00
Wizou
bedb44582e
fix (uint) unboxing on fields "int flags"
2022-02-06 14:16:00 +01:00
Wizou
1b1243a758
fix #27 : compatibility with Mono/Android
2022-02-04 02:51:14 +01:00
Wizou
0ed77ef984
Support GZipped array in RpcResult
2022-01-17 15:06:29 +01:00
Wizou
145ade4414
fix issue #21
...
Exception "An item with the same key has already been added" in Messages_GetHistory
2022-01-12 14:25:32 +01:00
Wizou
024c5ba705
More helpers to generically manage Chats & Channels
2021-12-31 08:38:41 +01:00
Wizou
51a89bc6a1
change Dictionary of UserBase into Dictionary of User
2021-12-25 03:20:22 +01:00
Wizou
8efa248aef
Added LastSeenAgo
...
and other helpers
2021-12-10 17:21:39 +01:00
Wizou
f289b9e2e5
Correctly handle RPC Error for methods returning bool.
...
Also don't hang CallAsync on ReadRpcResult deserializing error
2021-12-07 16:35:23 +01:00
Wizou
409cf25619
Fix 444 trying to download from a media_only DC with unnegociated AuthKey
2021-12-05 07:21:30 +01:00
Wizou
934895a81c
Gracefully handle a disconnection from an idle secondary DC
...
(don't reconnect)
2021-11-21 00:43:39 +01:00
Wizou
30f20fad0e
[rollback] Use records for TL methods
...
It was a nice idea and it worked but it made the lib 3x larger just for sugar syntax in generated code
2021-11-10 02:17:08 +01:00
Wizou
9e4d67ed86
Use records for TL methods
2021-11-10 01:20:54 +01:00
Wizou
2b95b235f3
Added IPeerResolver
2021-11-09 23:23:16 +01:00
Wizou
d557b4fc91
inheritAfter => inheritBefore (improved perf)
2021-11-09 15:01:59 +01:00
Wizou
382e78cccc
Added some helpers. SendMessage/Media return the transmitted Message. Fixed minor issues
2021-11-09 01:43:27 +01:00
Wizou
dbcb6814ff
renamed ITLObject to IObject
2021-11-07 16:52:58 +01:00
Wizou
fd9ec2eaed
Get rid of ITLFunction lambda writer and use declared ITLMethod<Ret> classes instead
2021-11-07 16:50:59 +01:00
Wizou
e7637011e1
xmldoc for RpcException possible errors and missing type descriptions
2021-11-03 18:20:54 +01:00
Wizou
718e96a763
chats and users fields are now serialized as Dictionary for easier access
2021-10-20 19:12:50 +02:00
Wizou
4b1ae1c5e0
Decode max timestamp (= forever) as DateTime.MaxValue
2021-10-17 03:18:36 +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