Commit Graph

716 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
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
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
Ilya Laktyushin
c654227b83 Various fixes 2026-01-05 15:14:19 +04:00
Ilya Laktyushin
fdc66446ce Various improvements 2025-12-29 22:42:58 +04:00
Ilya Laktyushin
966182bd2f Various improvements 2025-12-29 10:05:51 +04:00
Ilya Laktyushin
6bc1fe1939 Various improvements 2025-12-01 19:54:58 +04:00
Ilya Laktyushin
b04eee8289 Update API [skip ci] 2025-11-27 19:55:24 +04:00
Mikhail Filimonov
b53b2545fa fix: deleteAllMessages in monoforum 2025-11-19 12:48:36 +04:00
Isaac
6b330351e1 Stories 2025-11-06 12:53:18 +04:00
Isaac
07a3a5a2aa Update 2025-11-04 18:27:13 +04:00
Isaac
5145b9e605 Stories 2025-10-31 17:51:37 +04:00
Ilya Laktyushin
5ac77b9f31 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-10-29 17:21:34 +04:00
Ilya Laktyushin
5877f2c20d Various improvements 2025-10-29 17:20:36 +04:00
Isaac
70702914b4 Stories 2025-10-28 16:56:08 +04:00
Isaac
aa637d96d7 Stories 2025-10-28 12:41:50 +04:00
Ilya Laktyushin
c014d0b333 Various improvements 2025-10-22 21:12:38 +04:00
Isaac
118d475e16 Merge commit 'ee059515d03920e0e6885023b4fec98cb2ab4b9d' 2025-10-21 18:28:48 +04:00
Isaac
e44bd4d858 Story updates 2025-10-21 18:28:45 +04:00
Ilya Laktyushin
2cb5122bb3 Various improvements 2025-10-20 22:57:29 +04:00
Ilya Laktyushin
0915a42e64 Various improvements 2025-10-16 05:30:06 +04: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
6d59a6394a Various fixes 2025-09-28 03:01:43 +04:00
Ilya Laktyushin
400a67e240 Various improvements 2025-09-22 18:56:39 +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
4f4fc92345 Bot forum updates 2025-09-05 15:43:19 +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
Isaac
114401f62b Various improvements 2025-08-22 15:31:31 +02:00
Isaac
ded7e9695e [Temp] Create bot forum on Start 2025-08-15 15:11:12 +02:00
Isaac
826c48a4dc Bot updates 2025-08-15 13:35:06 +02:00
Isaac
8843fbe5cb Support typing drafts 2025-08-15 09:18:11 +02:00
Isaac
905a46e6cc Update API 2025-08-11 16:54:32 +02:00
Isaac
709d474929 Update API 2025-08-08 13:24:44 +02:00
Isaac
e91809a683 Various improvements 2025-07-29 14:36:00 +02:00
Isaac
7377b811e1 Various improvements 2025-07-29 13:44:38 +02:00
Isaac
f273c81d33 Various improvements 2025-07-29 11:59:08 +02:00
Isaac
ef01d24f02 Story folders 2025-07-28 20:42:23 +02:00
Isaac
865cebe0e7 Levels 2025-07-28 11:55:56 +02:00