Commit graph

48 commits

Author SHA1 Message Date
Wizou 0ad7d696a5 DownloadFileAsync: don't use stream.Position if !CanSeek 2024-02-01 21:24:49 +01:00
Wizou 7c65ce70ec api doc 2023-12-05 01:13:19 +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 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 35f2f2530a SendMessageAsync preview param changed to support above/below/disabled 2023-11-17 18:37:22 +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 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 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 88e2f5d71e detect wrong usage of GetMessages 2023-10-04 19:17:49 +02:00
Wizou 38efb05923 API Layer 162: more stories & blocking stuff... 2023-09-06 18:29:50 +02:00
Wizou c872a51a31 API Layer 160: Stories & more... 2023-07-21 10:52:46 +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 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 5adde27f88 new TLS client hello generation 2023-04-29 16:45:03 +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 2f79411fce Support IDictionary in CollectUsersChats (closes #137)
Renamed UserID => UserId due to discrepancy
2023-04-08 16:32:19 +02:00
Wizou 9af6404eff Now throwing WTException. Class hierarchy is TL.RpcException : WTelegram.WTException : ApplicationException 2023-04-02 13:44:23 +02:00
Wizou 5d0fd6452f Added helpers AnalyzeInviteLink & GetMessageByLink 2023-02-17 19:31:01 +01: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 389f110cfb Helper simplified method for Channels_GetAdminLog 2022-12-19 14:14:17 +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 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 d64c5c0c1e closes #103: files incorrectly padded to nearest 16 bytes 2022-10-26 17:33:06 +02:00
Wizou 517fab89bb ReadHistory helper 2022-10-25 10:34:53 +02:00
Wizou 88d54eb5a6 make SendAlbumAsync accept list too 2022-10-12 23:25:15 +02:00
Wizou e51ea2441e DownloadFileAsync support for !CanSeek streams (like AES_IGE_Stream) 2022-10-07 11:24:08 +02:00
Wizou f22990cb58 Support for Encrypted Files/Medias 2022-10-07 03:00:57 +02:00
Wizou 10c159b2d3 implicit operator InputDialogPeer from InputPeer 2022-09-24 15:30:43 +02:00
Wizou 9b7e4293d8 Removed compatibility with legacy (pre-2.0.0) session files 2022-08-11 19:39:18 +02:00
Wizou 668b19e3e8 Renamed Update event to OnUpdate, returning Task
(to gracefully handle async exceptions)
2022-07-29 15:24:18 +02:00
Wizou 000c35b256 SendAlbumAsync now returns all the Message[] (#75) 2022-07-24 11:14:08 +02:00
Wizou 39b46d71f0 moving code around Client.Helpers.cs 2022-07-04 12:55:00 +02:00
Wizou 4d8c0843d9 revoke_history always true for DeleteChatUser helpers (same behavior with channels) 2022-06-23 01:51:55 +02:00
Wizou aad40cf5df parameters MessagesFilter filter are optional 2022-06-23 01:49:07 +02:00
Wizou 8898308d9c Upgrade to layer 143: Premium features (long file_size, transcribed audio, chat mgmt...), advanced invoice/purchase, bot attach menu... 2022-06-15 01:58:44 +02:00
Wizou 4a9652dc7a added DeleteMessages helper 2022-05-21 02:32:15 +02:00
Wizou 2a250ab39f added GetMessages helper and InputMessageID implicit operator 2022-05-20 14:54:07 +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