Kylmakalle
256324b22b
Version 12.4
2026-03-10 23:45:27 +02:00
Ilya Laktyushin
e3c84fce71
Various fixes
2026-02-27 14:34:18 +04:00
Ilya Laktyushin
e3cbd92a40
Various improvements
2026-02-23 23:15:45 +04:00
Ilya Laktyushin
5d50aa34af
Various improvements
2026-02-23 21:25:25 +04:00
Mikhail Filimonov
670c547aad
copy protection improvements
2026-02-20 10:58:14 +04:00
Ilya Laktyushin
9c16af25c0
Update API
2026-02-17 10:25:42 +04:00
Ilya Laktyushin
c0f7cda4eb
Update API
2026-02-12 15:37:57 +04:00
Ilya Laktyushin
189d25c32e
Update API
2026-02-10 12:58:04 +04:00
Ilya Laktyushin
aa21a14c7d
Update API [skip ci]
2026-02-06 13:35:20 +04:00
Ilya Laktyushin
ea9d8db1d3
Update API [skip ci]
2026-01-20 14:54:15 +04:00
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
bb7e1ae300
Refactor constructor use sites for types 540-559 to struct pattern
...
Migrated Api.phone.*, Api.photos.*, Api.stats.*, Api.premium.* constructors
to use struct-wrapped enum pattern with --struct-count=560.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-19 00:28:21 +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
1f4b520b1b
Refactor constructor use sites for types 440-459 to struct pattern
...
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-18 23:29:12 +08:00
Isaac
81e17da3fb
Refactor constructor use sites for types 420-439 to struct pattern
...
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-18 23:22:34 +08:00
Isaac
b5dc0b2fd9
Refactor constructor use sites for types 400-419 to struct pattern
...
Refactored Api constructors in authorization and channel-related code:
- authorization, authorizationSignUpRequired, sentCode, sentCodeSuccess,
sentCodePaymentRequired, sentCodeTypeFirebaseSms, and related types
- channelParticipant, channelParticipants, sendAsPeers, adminLogResults
- chatlistInvite, chatlistInviteAlready, chatlistUpdates, exportedChatlistInvite
- popularAppBots, sponsoredMessageReportResultChooseOption, and others
Fixed variable shadowing issues where 'user' was extracted and then
immediately shadowed by TelegramUser initialization.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-18 23:15:21 +08:00
Isaac
5e27a39d80
Refactor constructor use sites for types 380-399 to struct pattern
...
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-18 22:58:30 +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
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
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
94b53b190a
Refactor constructor use sites for types 200-209 to struct pattern
...
Refactored constructors: messageReactions, messageReactor, messageReplies,
messageReplyHeader, messageReplyStoryHeader, messageViews,
inputMessagesFilterPhoneCalls, messagePeerVote, messagePeerVoteInputOption,
messagePeerVoteMultiple, messageReportOption, missingInvitee
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-18 01:01:19 +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
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
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
aa637d96d7
Stories
2025-10-28 12:41:50 +04:00
Ilya Laktyushin
d58757ca3c
Various improvements
2025-10-16 19:19:50 +04:00
Ilya Laktyushin
7dfd3b1d87
Various improvements
2025-09-26 01:30:15 +04:00
Ilya Laktyushin
85f8bde398
Various fixes
2025-09-25 23:19:21 +04:00
Ilya Laktyushin
e61870dd0d
Various improvements
2025-09-23 01:28:32 +04:00
Ilya Laktyushin
400a67e240
Various improvements
2025-09-22 18:56:39 +04:00
Ilya Laktyushin
a0e96582dd
Update API [skip ci]
2025-09-19 12:20:21 +04:00
Ilya Laktyushin
b6507b6cfb
Various improvements
2025-09-17 21:27:37 +04:00
Ilya Laktyushin
cb523192d5
Various improvements
2025-09-17 20:58:42 +04: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