Commit Graph

15127 Commits

Author SHA1 Message Date
Isaac
8696bb0c2a Fix constructors 2026-01-16 15:40:50 +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
ac019b15c5 Refactor Api types 90-99 to use struct-wrapped constructors
Types refactored (file-grouped parallel approach):
- encrypted* (Chat, ChatDiscarded, ChatEmpty, ChatRequested, ChatWaiting,
  File, Message, MessageService)
- chatInviteExported
- exported* (ChatlistInvite, ContactToken, MessageLink, StoryLink)
- factCheck

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 02:19:54 +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
02167b9b86 Refactor Api types 65-69 to use struct-wrapped constructors
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 01:38:37 +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
dc3d2dc789 Refactor Api types 53-59 to use struct-wrapped constructors
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 01:14:05 +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
9f757cbf74 Refactor Api types 33-42 to use struct-wrapped constructors
Types refactored:
- BusinessBotRecipients, BusinessBotRights, BusinessChatLink
- BusinessGreetingMessage, BusinessIntro, BusinessLocation
- BusinessRecipients, BusinessWeeklyOpen, BusinessWorkHours, CdnConfig

Updated pattern matching and construction sites in TelegramCore.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 19:41:25 +08:00
Isaac
375c1bc3e0 Refactor Api types 23-32 to use struct-wrapped constructors
Types refactored:
- BotCommandScope*, BotInfo, BotInlineMessage*, BotInlineResult
- BotMenuButton, BotPreviewMedia, BotVerification, BotVerifierSettings
- BusinessAwayMessage, BusinessAwayMessageScheduleCustom

Updated pattern matching and construction sites in TelegramCore.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 19:31:50 +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
Isaac
94cb9d3228 Refactor Api types 3-12 to use struct-wrapped constructors
Types refactored:
- AttachMenuBotIconColor, AttachMenuBots, AttachMenuBotsBot
- AuctionBidLevel, Authorization, AutoDownloadSettings
- AutoSaveException, AutoSaveSettings, AvailableEffect

Updated pattern matching and construction sites in TelegramCore.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 19:11:04 +08:00
Isaac
138cc9f51e Refactor Api types 0-2 to use struct-wrapped constructors
- AccountDaysTTL, AttachMenuBot, AttachMenuBotIcon now use Cons_* classes
- Updated use sites in TelegramCore to destructure from wrapper
- Generated Api files with stub functions for faster compilation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 18:59:46 +08:00
Isaac
a14a8ecf00 Add temp gitignore 2026-01-15 16:55:41 +08:00
Isaac
9b68f361e4 Revert "Upgrade recaptcha"
This reverts commit b0f2d0220e.
2026-01-14 22:58:46 +04:00
Isaac
6c0f54a688 Fix url parsing 2026-01-14 22:58:31 +04:00
Isaac
2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Isaac
76c3cb47c3 Merge branch 'temp-12' 2026-01-11 21:02:28 +04:00
Isaac
0f5a019f04 Glass updates 2026-01-11 21:01:45 +04:00
Ilya Laktyushin
e68756a7d5 Fix 2026-01-09 17:23:45 +04:00
Ilya Laktyushin
d70b31f8bc Fix build 2026-01-08 19:21:29 +04:00
Ilya Laktyushin
dfbab14a67 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-01-08 18:46:45 +04:00
Ilya Laktyushin
dbd5dd9912 Fix auction gift resale 2026-01-08 18:46:37 +04:00
Mikhail Filimonov
f3090d3b91 failed craft 2026-01-08 15:38:27 +04:00
Mikhail Filimonov
fc78790b24 Merge branch 'craft' 2026-01-08 15:27:58 +04:00
Mikhail Filimonov
b2972e3f59 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-01-08 15:27:53 +04:00
Mikhail Filimonov
35cfd6d0d2 craft 2026-01-08 15:27:38 +04:00
Ilya Laktyushin
93bb85b3b6 Various fixes 2026-01-08 00:47:32 +04:00
Ilya Laktyushin
21995065d6 Various fixes 2026-01-08 00:20:56 +04:00
Mikhail Filimonov
6b82d49945 - macos related 2026-01-07 21:35:27 +04:00
Ilya Laktyushin
f89ad5cd72 Fix emoji packs display on error 2026-01-07 15:10:05 +04:00
Ilya Laktyushin
937eae7081 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-01-06 23:13:11 +04:00
Ilya Laktyushin
ec53c5d115 Clean up 2026-01-06 23:12:38 +04:00
Isaac
1425fd8973 Fix tinted dark panel control color 2026-01-07 02:56:15 +08:00
Isaac
3e5547ef28 Fix background mask 2026-01-07 02:01:47 +08:00
Isaac
a200a427e6 Fix build 2026-01-06 23:25:17 +08:00
Isaac
abc135f257 Fix botforum topic removal 2026-01-06 23:22:18 +08:00
Isaac
9cfcc5d8ba UI improvements 2026-01-06 22:54:01 +08:00
Isaac
62a431b12c Merge commit '2a5b83429a8f9d43cac4215ffb22882b61ac601e' 2026-01-06 21:20:19 +08:00
Isaac
3a1d85784e Various improvements 2026-01-06 21:20:16 +08:00
Ilya Laktyushin
2a5b83429a Various fixes 2026-01-06 14:20:06 +04:00
Ilya Laktyushin
bceed091d8 Fix 2026-01-05 15:49:24 +04:00
Ilya Laktyushin
179be956d0 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-01-05 15:23:22 +04:00
Ilya Laktyushin
c654227b83 Various fixes 2026-01-05 15:14:19 +04:00
Isaac
a9cf09a673 Fix gift pane 2026-01-04 10:40:01 +08:00
Isaac
cb7d6f8593 Fix gift pane 2026-01-03 01:05:13 +08:00
Isaac
9300ec2db0 Merge commit 'c93e02a58e9462f10fef1012523e7eb63fc51409' 2026-01-02 23:11:57 +08:00
Isaac
87187bd414 Fixes 2026-01-02 23:11:51 +08:00