Commit Graph

487 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
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
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
2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Mikhail Filimonov
35cfd6d0d2 craft 2026-01-08 15:27:38 +04:00
Ilya Laktyushin
966182bd2f Various improvements 2025-12-29 10:05:51 +04:00
Ilya Laktyushin
2edce5ebf2 Alerts 2025-12-22 00:19:11 +04:00
Ilya Laktyushin
f781dbd25f Update API 2025-12-15 15:45:34 +04:00
Isaac
a63c90aa00 Glass 2025-12-12 23:58:00 +08:00
Ilya Laktyushin
653ee1b299 Update API 2025-12-02 14:28:47 +04:00
Ilya Laktyushin
5046aab8ff Update API 2025-12-02 12:36:05 +04:00
Ilya Laktyushin
b04eee8289 Update API [skip ci] 2025-11-27 19:55:24 +04:00
Ilya Laktyushin
99840de8d7 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-11-12 04:47:28 +04:00
Ilya Laktyushin
412e02ef00 Gift auctions 2025-11-12 04:46:02 +04:00
Isaac
7acf2b0b41 Forum improvements 2025-11-11 20:05:29 +08:00
Mikhail Filimonov
430994d341 - added missing API 2025-11-11 14:24:55 +07:00
Ilya Laktyushin
b76c6c9b3c Update API 2025-11-08 23:17:00 +04:00
Ilya Laktyushin
2b2937a2eb Update API 2025-11-04 17:11:50 +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
Ilya Laktyushin
0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Isaac
b9b38e5fbf Various improvements 2025-10-11 00:56:21 +08:00
Ilya Laktyushin
2725154111 Fix typo 2025-10-02 22:51:40 +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
737f84bb13 Various fixes 2025-09-25 21:47:46 +04:00
Ilya Laktyushin
a0e96582dd Update API [skip ci] 2025-09-19 12:20:21 +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
04765e0c36 Update 2025-09-17 11:18:26 +04:00
Ilya Laktyushin
f2c2b9ae8c Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-09-06 14:59:59 +05:00
Ilya Laktyushin
76e8d79f9f Update API 2025-09-06 13:35:19 +05: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
Ilya Laktyushin
75c773e694 Update API [skip ci] 2025-08-22 15:52:58 +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
Ilya Laktyushin
b9e104bf2d Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-08-12 04:03:05 +04:00
Ilya Laktyushin
c3fd609929 Update API 2025-08-12 03:48:18 +04:00
Isaac
624914b2c0 Update API 2025-08-11 18:17:23 +02:00
Isaac
403a163692 Merge commit '9146a42cfaf14d895b59f7c2cbbfcd3b3a50df4b'
# Conflicts:
#	submodules/TelegramCore/Sources/ApiUtils/TelegramMediaAction.swift
#	submodules/TelegramCore/Sources/TelegramEngine/Payments/StarGifts.swift
2025-08-11 16:55:18 +02:00
Isaac
905a46e6cc Update API 2025-08-11 16:54:32 +02:00