Commit Graph

274 Commits

Author SHA1 Message Date
Isaac
50c5cc9616 Refactor constructor use sites for types 560-579 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 00:40:53 +08:00
Isaac
6746305b4b Refactor constructor use sites for types 500-519 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 00:06:07 +08:00
Isaac
b1f723fbe8 Refactor constructor use sites for types 480-499 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 23:47:18 +08:00
Isaac
5e4cbec07a Refactor constructor use sites for types 460-479 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 23:36:22 +08:00
Isaac
55c53717af Refactor constructor use sites for types 360-379 to struct pattern
Migrated 20 types including userProfilePhoto, userStatus*, username, videoSize*,
wallPaper*, webDocument*, webPage*, webViewResultUrl, authorizations,
authorizationForm, autoDownloadSettings, businessChatLinks, chatThemes,
connectedBots, and contentSettings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 22:45:35 +08:00
Isaac
9b71eb0f8f Refactor constructor use sites for types 340-359 to struct pattern
Updates TelegramCore to work with --struct-count=360. This batch includes
story types, update types, user types, theme types, and various other
constructors in the 340-359 type range.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 22:21:57 +08:00
Isaac
8a99f76f93 Refactor constructor use sites for types 320-339 to struct pattern
Migrated constructors: starsSubscription, starsSubscriptionPricing,
starsTopupOption, starsTransaction, starsTransactionPeer,
statsAbsValueAndPrev, statsDateRangeDays, statsGraph, statsGraphAsync,
statsGraphError, statsGroupTopAdmin, statsGroupTopInviter,
statsGroupTopPoster, statsPercentValue, stickerKeyword, stickerPack,
stickerSet, stickerSetCovered, stickerSetFullCovered,
stickerSetMultiCovered, stickerSetNoCovered, storiesStealthMode,
storyAlbum, storyFwdHeader

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 15:06:15 +08:00
Isaac
5712f3061f Refactor constructor use sites for types 280-299 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 14:42:21 +08:00
Isaac
42b89bbb90 Refactor constructor use sites for types 260-279 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 14:34:07 +08:00
Isaac
90737abf6d Refactor constructor use sites for types 240-249 to struct pattern
Types refactored: phoneCallProtocol, phoneConnection, phoneConnectionWebrtc,
photo, photoEmpty, photoCachedSize, photoPathSize, photoSize, photoSizeEmpty,
photoSizeProgressive, photoStrippedSize, poll, pollAnswer, pollAnswerVoters,
pollResults, popularContact, postAddress

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:25:52 +08:00
Isaac
c6b0ef5da3 Refactor constructor use sites for types 220-239 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:08:10 +08:00
Isaac
a3d66c99f0 Refactor constructor use sites for types 220-229 to struct pattern
Constructors refactored:
- passkey, passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow
- pageRelatedArticle, pageTableCell, pageTableRow
- paymentCharge
- paidReactionPrivacyPeer
- paymentFormMethod, paymentRequestedInfo, paymentSavedCredentialsCard

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 01:44:12 +08:00
Isaac
3e5775b48e Refactor constructor use sites for types 210-220 to struct pattern
Types refactored:
- myBoost, nearestDc, notificationSound*, notifyForumTopic, notifyPeer
- outboxReadDate, page, pageBlock*, pageCaption, pageListItem*

Files modified (8):
- ApiUtils/InstantPage.swift (33 constructors)
- ApiUtils/TelegramPeerNotificationSettings.swift (2 constructors)
- ForumChannels.swift (1 constructor)
- State/AccountStateManagementUtils.swift (2 constructors)
- State/ChannelBoost.swift (1 constructor)
- State/UpdatesApiUtils.swift (1 constructor)
- TelegramEngine/Messages/MessageReadStats.swift (1 constructor)
- TelegramEngine/Peers/NotificationExceptionsList.swift (1 constructor)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 01:15:19 +08:00
Isaac
d2cf720e0a Refactor constructor use sites for types 180-189 to struct pattern
Refactored constructors:
- JSON types: jsonObjectValue, jsonArray, jsonBool, jsonNumber, jsonObject, jsonString
- Invoice types: invoice, labeledPrice
- Keyboard button types: keyboardButton, keyboardButtonCallback, keyboardButtonUrl, etc.
- Lang pack types: langPackDifference, langPackString, langPackStringPluralized, langPackStringDeleted, langPackLanguage
- Input web file types: inputWebFileLocation, inputWebFileAudioAlbumThumbLocation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 22:27:04 +08:00
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
df3b1cddcf Refactor Api types 60-64 to use struct-wrapped constructors
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 01:29:09 +08:00
Isaac
a526aee73e Refactor Api types 13-22 to use struct-wrapped constructors
Types refactored:
- AvailableReaction, BankCardOpenUrl, Birthday, Boost
- BotApp, BotAppSettings, BotBusinessConnection, BotCommand

Updated pattern matching and construction sites in TelegramCore.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 19:19:24 +08:00
Ilya Laktyushin
f781dbd25f Update API 2025-12-15 15:45:34 +04:00
Ilya Laktyushin
d574fb7a11 Various fixes 2025-11-13 16:10:30 +04:00
Isaac
3ab4850306 Updates [skip ci] 2025-11-04 11:35:11 +04:00
Isaac
5bc61d614c Update animation 2025-11-03 14:15:49 +04:00
Ilya Laktyushin
5877f2c20d Various improvements 2025-10-29 17:20:36 +04:00
Isaac
e44bd4d858 Story updates 2025-10-21 18:28:45 +04: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
c7f607865a Various improvements 2025-09-28 20:04:45 +04:00
Ilya Laktyushin
4657ac752d Various improvements 2025-09-27 01:27:56 +04:00
Ilya Laktyushin
7dfd3b1d87 Various improvements 2025-09-26 01:30:15 +04:00
Isaac
3e6c432511 Cherry-pick group call messages 2025-09-12 11:06:40 +02:00
Isaac
1d06c3f058 Bot forums v2 2025-09-05 15:25:50 +02:00
Isaac
f77609e6fa Various improvements 2025-08-25 22:57:08 +02:00
Ilya Laktyushin
cb1f5058a7 Update API 2025-08-25 17:23:25 +04:00
Isaac
ee749050f0 Bot forums 2025-08-19 17:24:33 +02:00
Isaac
8843fbe5cb Support typing drafts 2025-08-15 09:18:11 +02:00
Isaac
e315e6da6e Global search 2025-07-27 15:01:53 +02:00
Isaac
a5ad030123 Update 2025-07-22 16:08:51 +02:00
Ilya Laktyushin
b4832ff856 Update API 2025-07-14 12:50:11 +01:00
Isaac
3ed857bfc3 Various improvements 2025-06-29 18:15:50 +02:00
Isaac
15c9af3ab2 Merge commit 'cbb4a890b29c350992641f47bf60bf61440555bd' 2025-06-28 20:42:59 +02:00
Ilya Laktyushin
8862492480 Update API 2025-06-28 17:38:45 +02:00
Isaac
7512f7f017 Cleanup 2025-06-28 13:14:15 +02:00
Isaac
9a14b076c6 Update API [skip ci] 2025-06-23 21:52:31 +02:00
Ilya Laktyushin
c22e60092f Update API 2025-06-21 13:40:00 +02:00
Isaac
06eaf81fa9 [WIP] Post suggestion 2025-06-17 13:55:44 +04:00
Isaac
c42b2bd9c0 Various improvements 2025-06-11 13:37:58 +08:00
Isaac
e2bc739c7f Monoforums 2025-05-27 13:13:53 +08:00