366 Commits

Author SHA1 Message Date
Ilya Laktyushin
6240a14697 Crafting improvements 2026-02-12 14:04:46 +04:00
Mikhail Filimonov
d4a3523fb1 refactor 2026-02-06 14:38:53 +04:00
Ilya Laktyushin
b3aef93435 Various improvements 2026-02-03 21:58:41 +04:00
Ilya Laktyushin
b91e78fbea Various improvements 2026-01-30 20:21:24 +04:00
Ilya Laktyushin
7f75219a03 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-01-30 19:45:23 +04:00
Ilya Laktyushin
75627b036a Various improvements 2026-01-30 18:55:05 +04:00
Mikhail Filimonov
15d0267e72 burned flag 2026-01-30 12:09:19 +01:00
Mikhail Filimonov
609c22582a Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-01-30 08:22:01 +01:00
Mikhail Filimonov
4d99e3ad01 badge 2026-01-30 08:21:55 +01:00
Ilya Laktyushin
d07d38df25 Various improvements 2026-01-30 00:11:52 +04:00
Ilya Laktyushin
422e3e4e24 Various improvements 2026-01-29 21:37:06 +04:00
Mikhail Filimonov
5389f949d9 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-01-29 14:07:16 +01:00
Ilya Laktyushin
1d59f24bd8 Update API 2026-01-28 23:50:31 +04:00
Ilya Laktyushin
142d59cf8f Various improvements 2026-01-27 22:24:31 +04:00
Mikhail Filimonov
6f3f664f82 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-01-27 10:12:40 +01:00
Mikhail Filimonov
c1659b34e8 macos related 2026-01-27 10:12:34 +01:00
Ilya Laktyushin
0d12dd29ad Various improvements 2026-01-25 22:17:49 +04:00
Mikhail Filimonov
589168318a update api (rarities, crafted) 2026-01-20 13:24:54 +01:00
Ilya Laktyushin
7f2eb05339 Update API [skip ci] 2026-01-20 15:21:58 +04:00
Ilya Laktyushin
ea9d8db1d3 Update API [skip ci] 2026-01-20 14:54:15 +04:00
Isaac
64d8fe6ba0 Refactor constructor use sites for types 520-539 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 00:14:18 +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
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
859f5acea5 Refactor constructor use sites for types 300-319 to struct pattern
Migrated star gift and stars-related constructors including:
- starGift, starGiftUnique (pattern matches)
- starGiftAttribute*, starGiftAuction* constructors
- starsAmount, starsTonAmount, starsGiftOption
- starsGiveawayOption, starsGiveawayWinnersOption
- starsRevenueStatus, starRefProgram, starsRating
- starGiftCollection, starGiftUpgradePrice, starGiftBackground

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 14:54:12 +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
07313cbb84 Refactor constructor use sites for types 250-259 to struct pattern
Migrates the following constructors to use struct-wrapped associated values:
- postInteractionCountersMessage, postInteractionCountersStory
- premiumGiftCodeOption, premiumSubscriptionOption
- prepaidGiveaway, prepaidStarsGiveaway
- privacyValueAllowChatParticipants, privacyValueAllowUsers
- privacyValueDisallowChatParticipants, privacyValueDisallowUsers
- publicForwardMessage, publicForwardStory
- quickReply
- reactionCustomEmoji, reactionEmoji

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 14:24:53 +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
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
7013cd9fee Merge branch 'master' into api-refactoring
# Conflicts:
#	submodules/TelegramApi/Sources/Api0.swift
#	submodules/TelegramApi/Sources/Api25.swift
#	submodules/TelegramApi/Sources/Api26.swift
#	submodules/TelegramApi/Sources/Api27.swift
#	submodules/TelegramApi/Sources/Api28.swift
#	submodules/TelegramApi/Sources/Api29.swift
#	submodules/TelegramApi/Sources/Api30.swift
#	submodules/TelegramApi/Sources/Api31.swift
#	submodules/TelegramApi/Sources/Api32.swift
#	submodules/TelegramApi/Sources/Api33.swift
#	submodules/TelegramApi/Sources/Api34.swift
#	submodules/TelegramApi/Sources/Api35.swift
#	submodules/TelegramApi/Sources/Api36.swift
#	submodules/TelegramApi/Sources/Api37.swift
#	submodules/TelegramApi/Sources/Api38.swift
#	submodules/TelegramApi/Sources/Api39.swift
2026-01-17 04:12:49 +08:00
Mikhail Filimonov
db93244583 update api (rarities, crafted) 2026-01-16 16:20:08 +04:00
Ilya Laktyushin
a1f6f80888 Update API [skip ci] 2026-01-16 15:43:35 +04:00
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
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
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
Mikhail Filimonov
f3090d3b91 failed craft 2026-01-08 15:38:27 +04:00
Mikhail Filimonov
35cfd6d0d2 craft 2026-01-08 15:27:38 +04:00
Mikhail Filimonov
fdf8fef76c isRefunded for savedGift 2025-12-12 15:47:04 +04:00
Ilya Laktyushin
f7dc38b52e Various fixes 2025-12-08 00:07:54 +04:00
Ilya Laktyushin
e84fc33aa9 Fix 2025-12-05 23:46:46 +04:00
Mikhail Filimonov
6a0763f8fc Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-12-03 11:22:28 +04:00
Ilya Laktyushin
ecb12a784e Various improvements 2025-12-02 19:22:06 +04:00
Mikhail Filimonov
e2b49cc712 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-12-02 14:29:35 +04:00
Ilya Laktyushin
653ee1b299 Update API 2025-12-02 14:28:47 +04:00