Commit Graph

107 Commits

Author SHA1 Message Date
Isaac
e68bdc05ca Refactor Api types 150-179 to use struct-wrapped constructors
- Update pattern matches to use struct-based extraction for inputPeer*,
  inputMedia*, inputReplyTo*, inputSticker*, inputPhoto, inputUser, etc.
- Wrap constructor calls with .init() for struct-wrapped enum cases
- 47 TelegramCore source files modified
- 5 TelegramApi files regenerated with --struct-count=180

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 15:18:11 +08:00
Isaac
33a0d9e62c Refactor Api types 120-149 to use struct-wrapped constructors
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 03:00:59 +08:00
Isaac
6b2c0f9c53 Refactor constructor use sites for types 100-119 to struct pattern
Migrated 22 constructors: fileHash, folder, folderPeer, forumTopic,
forumTopicDeleted, foundStory, game, geoPoint, geoPointAddress,
globalPrivacySettings, groupCall, groupCallDiscarded, groupCallDonor,
groupCallMessage, groupCallParticipant, groupCallParticipantVideo,
groupCallParticipantVideoSourceGroup, groupCallStreamChannel,
highScore, importedContact, inlineBotSwitchPM, inlineBotWebView

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 02:41:47 +08:00
Isaac
a78b2c0db2 Refactor Api types 70-89 to use struct-wrapped constructors
Types refactored:
- 70-79: contactStatus, dataJSON, dcOption, defaultHistoryTTL, dialog,
  dialogFolder, dialogFilter, dialogFilterChatlist, dialogFilterSuggested,
  dialogPeer, dialogPeerFolder, disallowedGiftsSettings, document, documentEmpty
- 80-89: documentAttribute* (Audio, CustomEmoji, Filename, ImageSize, Sticker, Video),
  draftMessage, draftMessageEmpty, emailVerification* (Apple, Code, Google),
  emailVerifyPurposeLoginSetup, emoji* (Group, GroupGreeting, GroupPremium,
  Keyword, KeywordDeleted, KeywordsDifference, Language, List, Status,
  StatusCollectible), inputEmojiStatusCollectible

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 02:12:20 +08:00
Isaac
68d60d34dc Refactor Api types 43-52 to use struct-wrapped constructors
Also adds -warnings-as-errors to TelegramCore Package.swift

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 00:33:37 +08:00
Isaac
4d184eb9fa Fix stars settings 2025-11-14 17:27:08 +08:00
Isaac
3d51d83e89 Stories 2025-11-11 18:07:34 +08:00
Isaac
4853623813 Stories 2025-11-07 22:54:56 +08:00
Isaac
6ea1d44e94 Stories 2025-11-07 18:59:29 +08:00
Isaac
4616f0833c Stories 2025-11-07 18:08:34 +08:00
Isaac
99430812c1 Stories 2025-11-06 23:16:55 +04:00
Isaac
3ab4850306 Updates [skip ci] 2025-11-04 11:35:11 +04:00
Isaac
e09b241a9b Updates 2025-11-04 00:56:08 +04:00
Isaac
5145b9e605 Stories 2025-10-31 17:51:37 +04:00
Isaac
7be3a0ce81 Update 2025-10-31 12:00:34 +04:00
Isaac
aa59524a09 Stories 2025-10-28 15:44:44 +04:00
Isaac
aa637d96d7 Stories 2025-10-28 12:41:50 +04:00
Isaac
84171b89f4 Update 2025-10-27 00:22:14 +04:00
Isaac
c880397eca Stories 2025-10-26 22:05:58 +04:00
Isaac
fcdfd8e00f Updates 2025-10-24 20:09:32 +04:00
Isaac
5633833085 Update 2025-10-24 16:03:43 +04:00
Isaac
1967e1e273 Update 2025-10-24 13:34:55 +04:00
Isaac
e44bd4d858 Story updates 2025-10-21 18:28:45 +04:00
Isaac
bcc1213db2 Update 2025-10-18 02:55:47 +08:00
Isaac
abe3a01668 Update 2025-10-18 02:35:58 +08:00
Isaac
0619f73819 Updates 2025-10-18 02:00:35 +08:00
Isaac
7e3abe798f Update 2025-10-17 23:51:58 +08:00
Isaac
f468cea13c Update API 2025-10-15 17:06:40 +08:00
Isaac
b9b38e5fbf Various improvements 2025-10-11 00:56:21 +08:00
Ilya Laktyushin
56ea340e8a Various improvements 2025-09-29 20:07:44 +04:00
Ilya Laktyushin
c7f607865a Various improvements 2025-09-28 20:04:45 +04:00
Ilya Laktyushin
6d59a6394a Various fixes 2025-09-28 03:01:43 +04:00
Ilya Laktyushin
2aa0a8b4a9 Update API 2025-09-27 02:03:07 +04:00
Ilya Laktyushin
92a7157a70 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-09-27 01:28:34 +04:00
Ilya Laktyushin
4657ac752d Various improvements 2025-09-27 01:27:56 +04:00
Isaac
e3f7405fae Update API 2025-09-26 21:06:43 +08:00
Isaac
8c89dccf39 Update API 2025-09-26 20:05:27 +08:00
Ilya Laktyushin
7dfd3b1d87 Various improvements 2025-09-26 01:30:15 +04:00
Ilya Laktyushin
400a67e240 Various improvements 2025-09-22 18:56:39 +04:00
Ilya Laktyushin
4b8d87b05f Merge commit '202274073fa5df7a5fbaa4621e3da054a1a0284b' into call-messages 2025-09-17 22:05:40 +04:00
Ilya Laktyushin
cb523192d5 Various improvements 2025-09-17 20:58:42 +04:00
Isaac
3e6c432511 Cherry-pick group call messages 2025-09-12 11:06:40 +02:00
Isaac
e0d511165c Fix call messages 2025-09-12 11:02:05 +02:00
Isaac
a257009780 Update api and call messages 2025-09-12 10:56:05 +02:00
Isaac
f77609e6fa Various improvements 2025-08-25 22:57:08 +02:00
Isaac
8843fbe5cb Support typing drafts 2025-08-15 09:18:11 +02:00
Isaac
709d474929 Update API 2025-08-08 13:24:44 +02:00
Isaac
636508fc97 Various improvements
(cherry picked from commit 7e240c7064)
2025-07-09 17:47:56 +04:00
Isaac
7512f7f017 Cleanup 2025-06-28 13:14:15 +02:00
Isaac
d486f529a3 Various improvements 2025-06-06 20:20:42 +08:00