Commit graph

549 commits

Author SHA1 Message Date
Wizou 0cc8a324cb API Layer 192: sponsored messages for bots, paid broadcast for bots (allow_paid_floodskip), video processing flags 2024-10-31 18:19:53 +01:00
Wizou 6317fed8e0 Fix: UpdateManager losing synchronization context 2024-10-29 15:42:02 +01:00
Wizou 322f5f132f Fix: UpdateManager losing synchronization context 2024-10-29 14:39:05 +01:00
Wizou e758e9136c Fix issue with incomplete ForwardMessagesAsync 2024-10-26 17:32:40 +02:00
Wizou cb8bcb5b8b Fix MTProxy broken since HTTP support 2024-10-25 01:35:17 +02:00
Wizou 9a4643ecef added helper method ForwardMessagesAsync 2024-10-24 23:57:26 +02:00
Wizou 6354d0e8b7 Manager: workaround Updates_GetState returning wrong QTS 2024-10-18 01:15:45 +02:00
Wizou 75f5832ef6 API Layer 190: Text attached to gifts 2024-10-15 17:01:14 +02:00
Wizou e4d66925e3 Update System.Text.Json due to vulnerability CVE-2024-43485 2024-10-15 16:49:22 +02:00
Wizou 73e4b6c871 API Layer 189: Star Gifts, improved reporting 2024-10-07 14:42:22 +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 4f9accdfc8 SendAlbumAsync: For bots, upload external url natively instead of fetching via HttpClient 2024-09-23 00:21:14 +02:00
Wizou dcfd89c2a8 AnalyzeInviteLink: hacky detection of request_needed/join_request for basic chat links 2024-09-21 19:39:41 +02:00
Wizou 6cfa2a4da6 API Layer 188: Channels_ClickSponsoredMessage, KeyboardButtonCopy, alt_documents 2024-09-19 13:34:56 +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 62a691359b API Layer 187: Star Giveaways, private paid reactions, bot msg for paid media 2024-09-07 02:09:42 +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 aef4fb795a API Layer 186: star subscriptions, Super Channels, paid reactions, ... 2024-08-14 15:14:41 +02:00
Wizou dea7691075 api doc 2024-08-14 14:41:26 +02:00
Wizou a28b984395 Fix infinite recursion on Dispose after downloads (fix #274) 2024-08-10 23:29:08 +02:00
Wizou e5c6086e11 API Layer 185: Bot stuff, Main Mini App, Stars payment stuff & more... 2024-07-31 19:35:34 +02:00
Wizou 6afb0803bb api doc 2024-07-30 01:54:00 +02:00
Wizou 8654f99d2b Manager: added opportunity to call DropPendingUpdates/StopResync before a resync 2024-07-30 01:50:26 +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 f7b3a56ce3 api doc 2024-07-20 02:10:39 +02:00
Wizou d5101b4f3b No need to escape MarkdownV2 chars in code sections 2024-07-20 02:06:40 +02:00
Wizou 4946322045 No need to escape MarkdownV2 chars in code sections 2024-07-12 14:34:30 +02:00
Wizou 7643ed5ba4 API Layer 184: MessageActionPaymentRefunded, flag can_view_stars_revenue 2024-07-07 22:55:12 +02:00
Wizou 88c05287be Fix HtmlText exception with empty texts 2024-07-06 15:36:08 +02:00
Wizou b9299810b8 API Layer 183: Paid media, more stories areas, Payment stars status methods... 2024-07-02 01:18:09 +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 865c841bd6 Html/Markdown: fix-up potential ENTITY_BOUNDS_INVALID 2024-06-04 19:04:22 +02:00
Wizou c1a18a63c0 API Layer 181: Fact check, Message effects, Payment stars... 2024-05-28 17:15:39 +02:00
Wizou c8a0882587 Fix: ReactorError wasn't always triggered correctly on connection lost 2024-05-28 00:37:58 +02:00
Wizou 37b8f6c054 API Layer 179.3: UpdateBroadcastRevenueTransactions 2024-05-07 15:24:28 +02:00
Wizou 7d388e6e75 API Layer 179 (changed): emoji categories 2024-05-01 11:13:28 +02:00
Wizou 4422aad6be Catch/Log sessionStore.Write exceptions (fix #248) 2024-04-28 00:44:36 +02:00
Wizou 3a7c5a0957 API Layer 179: poll texts with entities, new SentCodeTypes 2024-04-27 13:22:05 +02:00
Wizou 3c19be32c7 New method LoginWithQRCode (fix #247) 2024-04-27 12:34:32 +02:00
Wizou 4381781af8 API Layer 178: mostly reactions & sponsored stuff 2024-04-24 17:42:46 +02:00
Wizou 69f9e0c418 better handle sendSemaphore on client dispose scenario 2024-04-24 17:25:45 +02:00
Wizou b6dbf9564f Fix excessive stack usage (#246) 2024-04-22 17:28:44 +02:00
Wizou 8228fede0f Turn "until" fields into DateTime 2024-04-18 18:33:21 +02:00
Wizou 6dcce7f784 Fix support for email code login 2024-04-17 17:33:48 +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 741422e17f Manager: prevent raising own updates in HandleDifference 2024-04-13 02:36:46 +02:00
Wizou f8fab6c3e9 some TL generic helpers 2024-04-13 02:34:50 +02:00
Wizou 1a4b606216 API Layer 177: more business stuff, new profile infos, revenue stats 2024-04-05 14:14:39 +02:00
Wizou fc08140995 renaming 2 files 2024-04-05 13:57:47 +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 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 55feb857d7 more sealed partial 2024-03-26 18:12:39 +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 39760f9306 using [] syntax 2024-03-23 17:43:28 +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 fd3bb731ba API Layer 176: new Business features 2024-03-08 12:19:44 +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 f958b4081d Fix properties base implementation 2024-03-04 23:54:58 +01:00
Wizou b9f3b2ebb4 text Escape methods accept null 2024-02-25 12:46:20 +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 0312821068 Alternate simpler byte[] callback session store 2024-02-18 18:02:51 +01:00
Wizou 125c1caeeb Alternate simpler byte[] callback session store 2024-02-18 17:41:30 +01:00
Wizou 288bf7ccf7 API Layer 174: Group boosts & emoji set 2024-02-18 17:00:49 +01:00
Wizou a424219cb6 API Layer 173: no_joined_notifications, SavedReactionTags in peers 2024-02-01 21:29:24 +01:00
Wizou 0ad7d696a5 DownloadFileAsync: don't use stream.Position if !CanSeek 2024-02-01 21:24:49 +01:00
Wizou 6f3c8732ec API Layer 172: Premium last-seen, read-dates, contacts 2024-01-18 15:53:17 +01:00
Wizou a0841fee4c API Layer 171: Saved reactions/tags 2024-01-16 18:13:08 +01:00
Wizou 7dc578f91d api doc 2024-01-16 18:09:45 +01:00
Ali 91a8eab86a
add implicit conversion for Peer (#229) 2024-01-16 14:55:51 +01:00
Wizou 48a1322452 Fix #225: RpcError INPUT_METHOD_INVALID_3105996036 when using client.DisableUpdates() 2024-01-15 14:45:58 +01:00
Wizou a17f13475d API Layer 170: access to saved dialogs/history/peer
(no idea what that means)
2023-12-31 18:29:36 +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 cce7a64cd9 api doc 2023-12-17 23:40:26 +01:00
Wizou 5f51b1f77e MBox helpers for updates 2023-12-17 23:39:55 +01:00
Wizou 7c65ce70ec api doc 2023-12-05 01:13:19 +01:00
Wizou d7ecd49b5c API Layer 167: PeerColor, wallpaper for_both, view_forum_as_messages, story forwards and more stats... 2023-11-30 16:19:42 +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 8f6e6440ba api doc 2023-11-30 01:51:23 +01:00