Commit graph

245 commits

Author SHA1 Message Date
Wizou 2a250ab39f added GetMessages helper and InputMessageID implicit operator 2022-05-20 14:54:07 +02:00
Wizou 5e66d562df Last arg of API methods can be params for simplicity 2022-05-20 14:04:54 +02:00
Wizou a8d2dfcfa1 Improve security by preventing replay attacks 2022-05-19 01:32:22 +02:00
Wizou 90ce527f31 Upgrade to layer 142: some various stuff 2022-05-15 00:36:28 +02:00
Wizou 9753b2b385 UpdateShortMessage.UpdateList correctly handle Flags.out_ 2022-05-13 23:16:48 +02:00
Wizou 5465474505 Try to wait for clean reactorTask completion on Dispose/Reset 2022-05-09 23:43:06 +02:00
Wizou 332b784384 minor doc update 2022-05-07 22:13:20 +02:00
Wizou de0f34e8c5 handle TAKEOUT_INIT_DELAY_X 2022-04-26 21:13:23 +02:00
Wizou 61dd83a162 mark Auth_* methods as obsolete. call Auth_CancelCode on exception 2022-04-22 23:07:43 +02:00
Wizou a53610ccb9 call OnUpdate(signUpRequired) instead of OnUpdate(TOS) only 2022-04-19 13:39:33 +02:00
Wizou 02c5b4137a Fix NullRef when RPC result is a nullable TL type 2022-04-18 22:07:04 +02:00
Wizou 9aa97d341a Upgrade to layer 140: Ringtones/Sounds, Custom bot menu, ... 2022-04-13 16:02:02 +02:00
Wizou 0f928d4992 Move ParseX logic out of TL.MTProto 2022-04-13 15:53:06 +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 e6a1dbb24d No code change. Just moving methods around 2022-04-06 18:38:54 +02:00
Wizou 05752863bd Various minor stuff 2022-04-01 21:48:28 +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 c2f228f7de ctor for Input User/Channel with mandatory access_hash parameter 2022-03-27 12:18:43 +02:00
Wizou 67da1da8c0 added xmldoc for these helpers 2022-03-23 17:33:23 +01:00
Wizou 8c5fe45c44 added EntitiesToMarkdown & EntitiesToHtml helpers 2022-03-23 17:04:17 +01:00
Wizou 073056c079 added InputUserBase.UserId helper property 2022-03-23 13:50:43 +01:00
Wizou b31c9b4366 Split TL.Schema.cs and TL.Helpers.cs 2022-03-21 21:25:30 +01: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 b31aa55c34 updated API docs 2022-03-18 03:53:19 +01:00
Wizou d0d63547b4 cancellationToken for Channels_GetAllParticipants 2022-03-10 14:39:44 +01:00
Wizou 07fcb2d9e4 Upgrade to layer 139 : RTMP groupcalls, video stickerset, ... 2022-03-10 14:35:42 +01:00
Wizou 78d7e250f3 added Messages_GetAllDialogs. UserOrChat(null) returns null 2022-02-27 22:06:13 +01:00
Wizou f3a55385ab updated web doc + FAQ TLSharp 2022-02-26 05:22:41 +01:00
Wizou a178d4be6f easier access to Document filename 2022-02-24 17:12:52 +01:00
Wizou f282d270ae Retry API call once on error -503 Timeout 2022-02-24 16:44:27 +01:00
Wizou 722a8313b0 Updated XML doc comments from corefork 2022-02-23 23:50:52 +01:00
Wizou 902a37443f Remove dependencies on Microsoft.Bcl.HashCode & System.Formats.Asn1 2022-02-22 11:50:55 +01:00
Wizou bdbf17aa07 Remove dependencies on Microsoft.Bcl.HashCode & System.Formats.Asn1 2022-02-19 03:30:50 +01:00
Wizou 74bba5721e Updated docs. Negative PingInterval 2022-02-14 15:17:15 +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 6646e85e78 more optional parameters. Messages_Search<> helper 2022-02-13 02:50:10 +01:00
Wizou 7570732a3f call CollectField only if CollectAccessHash 2022-02-11 18:05:12 +01:00
Wizou 3fe9002f2e Remove OLDKEY/MTPROTO1 code 2022-02-11 02:43:48 +01:00
Wizou 9b52cad74d Channels_GetAllParticipants: added logs 2022-02-09 23:20:21 +01:00
Wizou 4ebddba95d Channels_GetAllParticipants: restore original name 2022-02-09 22:58:26 +01:00
Wizou 08484fff41 optimized Channels_GetAllParticipantsSlow. Because of Telegram FLOOD_WAITs, no need for parallel queries 2022-02-09 22:27:55 +01:00
Wizou 5e5e51102f renamed Channels_GetAllParticipantsSlow. use clever alphabet and detect lying subcounts to fetch more entries. (WIP) 2022-02-09 22:17:19 +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 72fba55407 Upgrade to layer 138 2022-02-03 16:55:16 +01:00
Wizou e1023ecae6 renamed longitude long_ to lon. UserOrChat now returns null instead of throwing if peer unknown (shouldn't happen anyway). UserOrChat on UpdatesBase 2022-01-29 16:47:47 +01:00
Wizou cdba0f7088 optimize session writes 2022-01-27 17:34:16 +01:00