Commit graph

193 commits

Author SHA1 Message Date
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 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 517fab89bb ReadHistory helper 2022-10-25 10:34:53 +02:00
Wizou c6adeb1f31 Secret Chats example 2022-10-05 18:36:43 +02:00
Wizou 79097cdf8d some more optimizations 2022-10-04 00:52:44 +02:00
Wizou 3784ad00ad TL abstract => virtual props 2022-09-29 11:53:41 +02:00
Wizou ec0285077e xmldoc of recent layers 2022-09-25 19:21:00 +02:00
Wizou 10c159b2d3 implicit operator InputDialogPeer from InputPeer 2022-09-24 15:30:43 +02:00
Wizou faf8ab3fd0 Upgrade to layer 146: Invoice extended media 2022-09-14 18:33:33 +02:00
Wizou 11a9ca8631 more 'params' arguments 2022-09-14 18:22:52 +02:00
Wizou 26942d33f2 No changes, documentation 2022-09-10 18:23:01 +02:00
Wizou a071c993d5 MessageMedia.ToInputMedia helper 2022-09-04 15:24:59 +02:00
Wizou 3f3ff4cb9b Upgrade to layer 145: Emoji/reactions/stickerset stuff, email verification 2022-09-02 23:47:51 +02:00
Wizou 222d24c9a6 updated Intellisense / doc 2022-09-02 23:02:44 +02:00
Wizou 9b7e4293d8 Removed compatibility with legacy (pre-2.0.0) session files 2022-08-11 19:39:18 +02:00
Wizou ee0a777685 Added to layer 144: Album covers 2022-08-04 00:20:42 +02:00
Wizou 6977641b2d Upgrade to layer 144: Premium gifts, custom emoji stickers... 2022-07-29 02:21:05 +02:00
Wizou 000c35b256 SendAlbumAsync now returns all the Message[] (#75) 2022-07-24 11:14:08 +02:00
Wizou aad40cf5df parameters MessagesFilter filter are optional 2022-06-23 01:49:07 +02:00
Wizou b1c8d225f2 implicit InputStickerSet from string shortName 2022-06-17 15:12:50 +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 2a250ab39f added GetMessages helper and InputMessageID implicit operator 2022-05-20 14:54:07 +02:00
Wizou 90ce527f31 Upgrade to layer 142: some various stuff 2022-05-15 00:36:28 +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 9aa97d341a Upgrade to layer 140: Ringtones/Sounds, Custom bot menu, ... 2022-04-13 16:02:02 +02:00
Wizou c2f228f7de ctor for Input User/Channel with mandatory access_hash parameter 2022-03-27 12:18:43 +02: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 b31aa55c34 updated API docs 2022-03-18 03:53:19 +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 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 6646e85e78 more optional parameters. Messages_Search<> helper 2022-02-13 02:50:10 +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 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 44ee933b03 webdoc "only simple chat" for 4 more methods 2022-01-21 19:04:33 +01:00
Wizou 3730cdc7f0 Added helper SendAlbumAsync, and implicit operators/constructors for media 2022-01-20 02:44:43 +01:00
Wizou 411fcad556 Upgrade to layer 137 2022-01-19 21:31:07 +01:00
Wizou 8d70f241ad ChatFull Participants helpers 2022-01-18 15:24:04 +01:00
Wizou 0c1785596d various minor stuff 2022-01-07 00:24:47 +01:00
Wizou 7967f9a16c layer doc about reactions 2022-01-03 19:18:40 +01:00
Wizou dced397c15 Released 1.8.3 2021-12-30 12:45:52 +01:00
Wizou b4a8f9f280 Upgrade to layer 136 2021-12-30 12:14:41 +01:00
Wizou 51a89bc6a1 change Dictionary of UserBase into Dictionary of User 2021-12-25 03:20:22 +01:00
Wizou 2881155f8b documentation 2021-12-24 07:21:02 +01:00
Wizou 35cd3b682e More helpers 2021-12-22 04:46:01 +01:00
Wizou 45d6e330bc renamed CallAsync as Invoke 2021-12-16 14:51:47 +01:00
Wizou 15c3fda05d helper TotalCount on Messages_DialogsBase 2021-12-12 20:38:13 +01:00
Wizou 8efa248aef Added LastSeenAgo
and other helpers
2021-12-10 17:21:39 +01:00
Wizou 275ece196b comments 2021-12-09 08:43:20 +01:00
Wizou 0351ad027f added Channels_GetAllParticipants helper 2021-12-07 00:34:57 +01:00
Wizou e7b9ea93cd Upgrade to layer 135 2021-11-27 02:56:42 +01:00
Wizou f901319ca4 simplified Help_GetAppConfig access to Json values 2021-11-13 15:09:28 +01:00
Wizou c157fba5e4 Move TL methods in Extensions class and TL.Methods namespace. Remove partial modifiers when possible 2021-11-10 17:26:40 +01:00
Wizou 30f20fad0e [rollback] Use records for TL methods
It was a nice idea and it worked but it made the lib 3x larger just for sugar syntax in generated code
2021-11-10 02:17:08 +01:00
Wizou 9e4d67ed86 Use records for TL methods 2021-11-10 01:20:54 +01:00
Wizou 2b95b235f3 Added IPeerResolver 2021-11-09 23:23:16 +01:00
Wizou d557b4fc91 inheritAfter => inheritBefore (improved perf) 2021-11-09 15:01:59 +01:00
Wizou 382e78cccc Added some helpers. SendMessage/Media return the transmitted Message. Fixed minor issues 2021-11-09 01:43:27 +01:00
Wizou dbcb6814ff renamed ITLObject to IObject 2021-11-07 16:52:58 +01:00
Wizou fd9ec2eaed Get rid of ITLFunction lambda writer and use declared ITLMethod<Ret> classes instead 2021-11-07 16:50:59 +01:00
Wizou 14e2437097 Add xmldoc for all public members 2021-11-06 05:22:33 +01:00
Wizou 3bd1f1bb22 Moved "Possible error codes" to <summary> as they are not displayed correctly with <exception> under VS 2019 2021-11-04 02:09:20 +01:00
Wizou e7637011e1 xmldoc for RpcException possible errors and missing type descriptions 2021-11-03 18:20:54 +01:00
Wizou a197573258 Complete XML documentation of the Telegram API ! 2021-11-03 03:53:48 +01:00
Wizou 7616625ac3 Upgrade to layer 134 2021-10-31 03:55:03 +01:00
Wizou 391c7f96f0 auto-generate properties helpers for fields shared among derived classes 2021-10-23 03:36:46 +02:00
Wizou c9ccaf2d17 More helpers (reordered), notably UserOrChat 2021-10-23 01:37:50 +02:00
Wizou 718e96a763 chats and users fields are now serialized as Dictionary for easier access 2021-10-20 19:12:50 +02:00
Wizou d7b4afb1ee More nullable ctors (*NotModified) 2021-09-30 04:00:38 +02:00
Wizou d4c373d95f Nullable ctor: Empty classes are now converted into/from a null value. This simplifies the hierarchy 2021-09-30 03:40:08 +02:00
Wizou 2ff0de667d More class inheritance 2021-09-27 00:39:30 +02:00
Wizou e3b70fda19 BREAKING CHANGE: Introducing inheritAfter which allows for better/simplified (but possibly changed) class hierarchy generation.
Also improved layers class generation.
2021-09-26 05:07:17 +02:00
Wizou be4d1aca6b added DownloadFileAsync helpers 2021-09-23 13:13:36 +02:00
Wizou f6cc00068a Fix "Invalid frame_len" when downloading files 2021-09-18 02:40:58 +02:00
Wizou e0556af742 Convert empty type hierarchies to enums 2021-09-18 02:11:23 +02:00
Wizou 37974c70b7 Convert TL functions to extension methods 2021-09-17 04:53:02 +02:00
Wizou c727f75380 Upgrade to layer 133 (lots of changes, all IDs are now long). You'll need to delete your WTelegram.session files 2021-09-17 03:58:52 +02:00
Wizou 593463f46b Upgrade to layer 131
not available as JSON on official website https://core.telegram.org/schema
but found as TL files at https://github.com/telegramdesktop/tdesktop/tree/dev/Telegram/Resources/tl
2021-08-20 14:45:39 +02:00
Wizou 5e6421d76e simplify ITLFunction<X> into ITLFunction 2021-08-12 12:37:56 +02:00
Wizou 83c0991770 XML comments: add URLs to API pages 2021-08-12 11:01:15 +02:00
Wizou 3d540cdb8f Make TL classes partial so we can extend them with helpers in Helpers.TL.cs 2021-08-10 03:12:33 +02:00
Wizou 674130e079 TL Functions are now direct Client methods ; Renamed/rationalized serialization methods 2021-08-09 11:41:50 +02:00
Wizou 95870c485d updated README 2021-08-07 07:58:08 +02:00
Wizou 4dd03c66a6 Move code to src folder 2021-08-07 06:25:51 +02:00
Renamed from TL.Schema.cs (Browse further)