Commit graph

147 commits

Author SHA1 Message Date
Wizou 39b46d71f0 moving code around Client.Helpers.cs 2022-07-04 12:55:00 +02:00
Wizou f620514759 fix issue with MTProxy and media dc_id 2022-06-19 18:08:19 +02:00
Wizou 823a414839 Fix possible NullRef with _bareRpc 2022-06-15 12:21:22 +02:00
Wizou 33a2fb02c1 minor changes 2022-06-14 00:58:51 +02:00
Wizou 6aef50db85 Retry wrong password/verification_code up to MaxCodePwdAttempts times 2022-05-31 14:28:37 +02:00
Wizou a8d2dfcfa1 Improve security by preventing replay attacks 2022-05-19 01:32:22 +02:00
Wizou 5465474505 Try to wait for clean reactorTask completion on Dispose/Reset 2022-05-09 23:43:06 +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 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 5c5b8032b9 Fix race condition on pendingRpcs adding/pulling 2022-03-27 22:29:48 +02:00
Wizou 073056c079 added InputUserBase.UserId helper property 2022-03-23 13:50:43 +01:00
Wizou d0d63547b4 cancellationToken for Channels_GetAllParticipants 2022-03-10 14:39:44 +01:00
Wizou 78d7e250f3 added Messages_GetAllDialogs. UserOrChat(null) returns null 2022-02-27 22:06:13 +01:00
Wizou f282d270ae Retry API call once on error -503 Timeout 2022-02-24 16:44:27 +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 8bbb753c32 fix (uint) unboxing on fields "int flags" (improved) 2022-02-06 23:22:51 +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
Wizou 176809a5be Support for custom sessionStore 2022-01-26 22:00:52 +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 f6e14c7499 Maintain AddressFamily when migrating DCs 2022-01-21 15:22:21 +01:00
Wizou f711948da7 factorize IndirectStream 2022-01-21 01:40:10 +01:00
Wizou 3730cdc7f0 Added helper SendAlbumAsync, and implicit operators/constructors for media 2022-01-20 02:44:43 +01:00
Wizou 79224551e6 Prevent reactor reconnect if Dispose() was called 2022-01-17 16:54:34 +01:00
Wizou 0ed77ef984 Support GZipped array in RpcResult 2022-01-17 15:06:29 +01:00
Wizou cba347dc89 clone TcpHandler & PingInterval for secondary DCs 2022-01-13 14:22:52 +01:00
Wizou 83b4e8a4e7 clean dispose of TlsStream 2022-01-11 04:42:41 +01:00
Wizou d6d656c8fe Support for TLS MTProxy 2022-01-11 04:14:23 +01:00
Wizou 0c1785596d various minor stuff 2022-01-07 00:24:47 +01:00
Wizou 28f099ed1e Transport obfuscation and MTProxy support 2022-01-03 18:15:32 +01:00
Wizou 024c5ba705 More helpers to generically manage Chats & Channels 2021-12-31 08:38:41 +01:00
Wizou e3b7d17d2b Handle BadMsgNotification 16/17 by resynchronizing server time 2021-12-30 23:45:28 +01:00
Wizou e91c20ba8e Added GetFullChat helper 2021-12-30 17:37:25 +01:00
Wizou 86ac336691 DownloadFileAsync supports PhotoStrippedSize 2021-12-28 12:12:38 +01:00