Commit graph

549 commits

Author SHA1 Message Date
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
Wizou 5febd2d27b Abort pending requests on Dispose
(I thought it was already the case!?)
2023-11-29 15:16:35 +01:00
Wizou 35fab21493 SendAlbumAsync now sets caption on first media instead of last 2023-11-26 23:33:09 +01:00
Wizou 9209d792a5 - InputMediaUploadedDocument ctor accept attributes
- SendMediaAsync: MP4 file or "video" mime type is now sent as streamable video
- SendAlbumAsync: External videos URL are now sent as streamable videos by default

(streamable videos might lack thumbnail if too big for client auto-download)
2023-11-25 19:16:51 +01:00
Wizou 8f44137366 api doc 2023-11-25 19:16:03 +01:00
Wizou 35f2f2530a SendMessageAsync preview param changed to support above/below/disabled 2023-11-17 18:37:22 +01:00
Wizou 6b44dbae8a Support blockquotes in HTML/Markdown 2023-11-17 18:36:49 +01:00
Wizou 3861255710 Support additional connection JSON params with Config("init_params") 2023-11-11 12:25:02 +01:00
Wizou 96ff52fab8 API Layer 166.2: Premium_GetUserBoosts, UpdateBotChatBoost 2023-11-06 23:58:48 +01:00
Wizou df2b2a7907 API Layer 166: colors/emoji, new quotes, new link previews, distant replies, invert_media, premium boosts/giveaway/gifts...
see https://t.me/tginfoen/1760
2023-10-28 23:47:04 +02:00
Wizou eb375824e4 api doc 2023-10-28 23:16:48 +02:00
Wizou 136df62b8f UploadFileAsync: just get rid of MD5 altogether. It works just fine 🤷🏻‍♂️ 2023-10-24 17:33:25 +02:00
Wizou 4a1b2f5f91 Fix #197: wrong MD5 encoding in UploadFileAsync 2023-10-24 17:05:39 +02:00
Wizou 9e92d3d814 api doc 2023-10-24 17:00:14 +02:00
Wizou c059ebf208 UploadFileAsync now supports Stream with unknown Length (!CanSeek) 2023-10-19 23:57:45 +02:00
Wizou fb8d1c2d07 Some more implicit Input conversions 2023-10-09 15:19:03 +02:00
Wizou 2b7868ee16 API Layer 165: minor changes to WebPage, channel boost url 2023-10-04 19:24:53 +02:00
Wizou 88e2f5d71e detect wrong usage of GetMessages 2023-10-04 19:17:49 +02:00
Wizou 392793b390 API Layer 164: Stories in channel, boosts, more stories stuff... 2023-09-22 23:16:21 +02:00
Wizou 8f90e88074 API Layer 163: some minor bot & update stuff 2023-09-18 19:21:48 +02:00
Wizou 38efb05923 API Layer 162: more stories & blocking stuff... 2023-09-06 18:29:50 +02:00
Wizou e20d4d715c Updated Examples projects 2023-08-12 15:03:09 +02:00
Wizou c872a51a31 API Layer 160: Stories & more... 2023-07-21 10:52:46 +02:00
Wizou 2b65e8f1ed CollectUsersChats allows null dictionaries 2023-07-08 01:35:15 +02: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 bcc62a1356 test "yml" 2023-07-05 15:53:48 +02:00
Wizou 994e0deade test "ReleaseNotes" 2023-07-05 05:08:28 +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 d50ac0ba51 - Fix Messages_GetAllDialogs (MessageEmpty)
- Fix AnalyzeInviteLink (public channel with join request)
- Added Contacts_ResolvedPeer.Channel property
closes #166
2023-06-27 16:00:55 +02:00
Wizou 7feb4a40ec updated "Program_ListenUpdates" example 2023-05-27 18:05:24 +02:00
Wizou b282d2e007 Prevent 'You must connect to Telegram first' during network loss
api doc
2023-05-18 22:02:53 +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 e8b0bb9245 ActiveUsernames helpers
Github action telegram-api
2023-05-17 11:45:06 +02:00
Wizou 98f6a26b09 api doc 2023-05-11 12:46:34 +02:00
Wizou 30fc1cad8d Support chats cache in AnalyzeInviteLink/GetMessageByLink
(closes #148)
2023-05-04 17:07:47 +02:00
Wizou c052ac2e2c fix issue with Channels_GetAdminLog helper 2023-05-03 14:24:52 +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 5adde27f88 new TLS client hello generation 2023-04-29 16:45:03 +02:00
Wizou 35c492de4f moved IsGroup IsChannel up to ChatBase 2023-04-25 20:47:57 +02:00
Wizou e33184fabb improved api doc for Flags 2023-04-25 16:51:39 +02:00
Wizou 6a75f0a9d8 Fix progressCallback abort/exception handling during DownloadFileAsync 2023-04-25 13:19:15 +02:00
Wizou 7c7a2a0625 Telegram suddenly removed Messages_GetAllChats method 🤦🏻‍♂ So here it is back, as a helper based on GetAllDialogs 2023-04-24 22:03:03 +02:00
Wizou ee2f0bfee1 added Document.GetAttribute<> helpers, setters on Input* classes and more 2023-04-23 14:35:08 +02:00
Wizou acb7ff1d74 Layer 158: chat wallpapers, enhanced chat folders/lists & switch-inline, edit bot infos, ... 2023-04-21 18:02:13 +02:00
Wizou 24a46206e1 api doc 2023-04-21 16:33:04 +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 2f79411fce Support IDictionary in CollectUsersChats (closes #137)
Renamed UserID => UserId due to discrepancy
2023-04-08 16:32:19 +02:00
Wizou ddfa095f1a api doc 2023-04-08 16:26:33 +02:00
Wizou 9af6404eff Now throwing WTException. Class hierarchy is TL.RpcException : WTelegram.WTException : ApplicationException 2023-04-02 13:44:23 +02:00
Wizou 621a88bb9f Fix cache_time type 2023-04-02 00:06:26 +02:00
Wizou 81870b2de1 API Layer 156: some email login stuff 2023-03-26 17:59:15 +02:00
Wizou b307534078 api doc 2023-03-24 16:57:54 +01:00
Wizou 2f3106fe69 MainUsername property on IPeerInfo 2023-03-16 13:43:18 +01:00
Wizou fd9177f805 API Layer 155: timestamp of reactions 2023-03-09 22:41:07 +01:00
Wizou b63829393e Don't raise ReactorError for alt DCs 2023-03-09 22:32:57 +01:00
Wizou c646cac738 API Layer 154: bot app/webview stuff, modifying stickers... 2023-03-08 20:47:10 +01:00
Wizou 22ea4c6de8 update doc 2023-03-08 20:10:09 +01:00
Wizou 86796ebf0c Correctly dispose session store on ctor exception (#128) 2023-02-26 17:09:45 +01:00
Wizou 5d0fd6452f Added helpers AnalyzeInviteLink & GetMessageByLink 2023-02-17 19:31:01 +01:00
Wizou 514015639d ToString use MainUsername rather than username 2023-02-15 18:42:52 +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 66d8b75463 deprecate the experimental CollectAccessHash system 2023-01-12 01:37:12 +01:00
Wizou 8f10df8849 made Peer.UserOrChat as protected internal to be user-overridable 2023-01-09 13:22:35 +01:00
Wizou 014f563b89 added Channel.MainUsername helper | simplified GetAllChats example 2023-01-07 13:22:40 +01:00
Wizou 750dbef33b default value for offset_topic arg 2023-01-06 13:29:33 +01:00
Wizou 8098f36932 API Layer 151: media spoiler flag, personal profile photo, UpdateUser... 2022-12-29 22:33:28 +01:00
Wizou 7fa4051e99 Changed the ordering of optional parameters: Moved bool parameters to the end of parameter list 2022-12-29 22:28:58 +01:00
Wizou 389f110cfb Helper simplified method for Channels_GetAdminLog 2022-12-19 14:14:17 +01:00
Wizou e7ec282ac1 Signal wrong use of some params[] methods 2022-12-12 10:07:31 +01:00
Wizou aa9c4b532c Improved documentation 2022-12-12 10:07:07 +01:00
Wizou eb2577beed Upgrade to layer 150: Anti-Spam, web/contact tokens, chat TTL, hide topics, Fragment login 2022-12-07 13:36:49 +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 76d75a6035 implicit Input* operators for Wallpaper, EncryptedChat, PhoneCall, Theme, GroupCall 2022-11-26 23:10:06 +01:00
Wizou a8d6656c05 Using Github pages. Added User.IsBot helper 2022-11-26 14:16:52 +01:00
Wizou 898523346b build fix | Upgrade to layer 149: More Topics stuff 2022-11-23 14:28:25 +01:00
Wizou 11238550d3 Upgrade to layer 149: More Topics stuff 2022-11-23 14:18:07 +01:00
Wizou fd593b429a InputPeer.ID & MessageBase.ToString helpers.
Publish pre-releases on nuget now
2022-11-20 17:15:57 +01:00
Wizou adf6134911 Doc/Rationalize user/chat generic helpers 2022-11-19 02:03:48 +01:00
Wizou 2047154d26 doc 2022-11-15 16:20:00 +01:00
Wizou 61510465d2 Fix immediate crash 🤦🏻‍♂️ 2022-11-13 00:25:56 +01:00
Wizou fe5773ce29 Add release notes in Description too 2022-11-12 20:02:46 +01:00
Wizou ba523f7d21 Releasing 3.1.1 2022-11-12 19:40:34 +01:00
Wizou 6b3fcdb967 Trying to add ReleaseNotes in nuget package 2022-11-11 01:47:37 +01:00
Wizou a038be87af Improved Secret Chats:
Support layer 144 : big documents, silent
(layer not yet supported by other clients)
List of ISecretChat with detailed properties
Fix PFS issue losing a message...
2022-11-11 00:33:29 +01:00
Wizou 8fa00a8cc6 Support for bare methods in session 2022-11-08 17:06:16 +01:00
Wizou d9b137d41c added User.MainUsername to help with multiple usernames 2022-11-05 23:01:38 +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 b902b33558 updated docs (and reordered Examples.md) 2022-11-01 18:44:01 +01:00
Wizou d64c5c0c1e closes #103: files incorrectly padded to nearest 16 bytes 2022-10-26 17:33:06 +02:00
Wizou 49969e46cf xmldoc 2022-10-26 15:14:29 +02:00
Wizou 1a3cde4241 Replaced *Default & *None structures with null 2022-10-26 14:26:22 +02:00
Wizou cc9cf16f8a ToInputChatPhoto helper 2022-10-25 20:07:43 +02:00
Wizou 517fab89bb ReadHistory helper 2022-10-25 10:34:53 +02:00