189 Commits
Author SHA1 Message Date
isaac 13a153aff2 WIP 2026-05-20 00:33:08 +08:00
isaacandClaude Opus 4.7 e918b353ec Postbox refactor waves 278-356: squash
Squashes 79 sequential refactor waves into a single commit.

Highlights:
- Drop `import Postbox` (and matching `//submodules/Postbox` BUILD deps) from a wide swath of consumer files: ChatList, ChatMessage*BubbleContentNode subclasses, ListMessageNode/ListMessageItem, GalleryData, ChatHistorySearchContainerNode, ChatPanelInterfaceInteraction, ChatControllerInteraction, ChatMessageStickerItemNode, ChatMessageReplyInfoNode, ChatMessageInstantVideoItemNode, ChatPresentationInterfaceState, BrowserMarkdown/Readability, MediaResources, LocalMediaResources, ICloudResources, FetchManager, ShareController, OpenChatMessage, GalleryController, GroupStickerSearchContainerNode, GroupStickerPackCurrentItem, ChatPinnedMessageTitlePanelNode, OverlayAudioPlayerController, PresentationThemeSettings, StatisticsUI/StoryIconNode, TextFormat/StringWithAppliedEntities, GalleryUI/VideoAdComponent, StickerPackPreviewUI, WallpaperPreviewMedia, WallpaperResources, YoutubeEmbedImplementation, InstantPageExternalMediaResource, PlatformRestrictionMatching, TelegramUIDeclareEncodables, ChatListNode/ChatListSearchContainerNode.
- Add `TelegramEngine` facades: `Themes.wallpapers`, `Themes.themes`, `AccountData.addAppLogEvent`.
- Add `EngineMessageHistoryEntryLocation` wrapper.
- Add `EngineRaw*` escape-hatch typealiases (`EngineRawMessage`, `EngineRawPeer`, `EngineRawMedia`, `EngineRawMediaResource`, `EngineRawMediaResourceData`, `EngineRawItemCollectionItem`, `EngineRawItemCollectionInfo`) and `engineDeclareEncodable` forwarder.
- Drop unused `account:`/`postbox:`/`network:` parameters from several public functions and delete the dead overloads/types/functions left over: `automaticThemeShouldSwitchNow`, `cancelFreeMediaFileInteractiveFetch`, `legacyEnqueueVideoMessage`, `TelegramMediaFileReference`, plus assorted dead public TelegramCore/AccountContext SecureId entry points.
- Delete entire dead modules: `LegacyDataImport`, `TonBinding`, `SpotlightSupport`, `SvgRendering`, third-party `AppCenter`/`VectorPlus`/`SwiftColor`/`SwiftSVG`.
- Drop orphan `//submodules/Postbox` BUILD deps across 3 cleanup rounds.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 14:11:06 +02:00
Ilya Laktyushin 3c6ea30767 Various fixes 2026-04-26 01:07:12 +02:00
Ilya Laktyushin 1fa0c7991c Various fixes 2026-04-17 11:06:56 +02:00
Ilya Laktyushin 532a3ae3e1 Various fixes 2026-04-16 21:45:26 +02:00
Ilya Laktyushin 0df319742a Update API 2026-04-16 01:18:22 +02:00
Ilya Laktyushin ed55943a44 Various improvements 2026-03-27 01:13:38 +01:00
Ilya Laktyushin 25762d1133 Various fixes 2026-03-24 17:21:46 +01:00
Ilya Laktyushin 34f5b9d4c2 Update API 2026-03-20 12:48:05 +01:00
Ilya Laktyushin 6519b5c84d [WIP] Polls 2026-03-17 11:12:58 +01:00
Mikhail Filimonov 1a08c3f0d0 update api 2026-03-17 10:29:43 +01:00
Ilya Laktyushin b1a190f87a [WIP] Polls 2026-03-16 18:07:12 +01:00
Ilya Laktyushin 3a311f75bd Update API 2026-03-16 13:37:36 +01:00
Ilya Laktyushin cbc5a49507 [WIP] Polls 2026-03-13 11:04:33 +01:00
Mikhail Filimonov dce5832d4d location 2026-03-12 14:25:05 +00:00
Mikhail Filimonov a02f811c2a polls 2026-03-11 17:41:41 +00:00
Ilya Laktyushin 6c1376169c Update API 2026-03-11 14:37:23 +01:00
Ilya Laktyushin 713f557e64 Update API 2026-03-09 14:32:10 +01:00
Ilya Laktyushin c68337ef70 Update API 2026-03-08 08:49:21 +01:00
Isaac ad30eb2bc5 Update 2026-02-24 14:00:41 +01:00
Ilya Laktyushin e17c7d9859 Update API 2026-02-05 17:27:47 +04:00
Isaac 962a9ae83a Various improvements 2026-01-30 22:20:50 +08:00
IsaacandClaude Opus 4.5 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
IsaacandClaude Opus 4.5 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
IsaacandClaude Opus 4.5 61983a113a Refactor constructor use sites for types 190-199 to struct pattern
Refactored constructors include:
- maskCoords, mediaArea*, message, messageEmpty, messageService
- messageAction* (50+ action types)
- messageEntity* (20+ entity types)
- messageMedia* (20+ media types)
- messageFwdHeader, messagePeerReaction, messageExtendedMedia*

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 00:45:23 +08:00
Isaac 8696bb0c2a Fix constructors 2026-01-16 15:40:50 +08:00
IsaacandClaude Opus 4.5 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
IsaacandClaude Opus 4.5 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
IsaacandClaude Opus 4.5 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
IsaacandClaude Opus 4.5 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
Ilya Laktyushin f781dbd25f Update API 2025-12-15 15:45:34 +04:00
Ilya Laktyushin b04eee8289 Update API [skip ci] 2025-11-27 19:55:24 +04:00
Isaac 7acf2b0b41 Forum improvements 2025-11-11 20:05:29 +08:00
Ilya Laktyushin 4432581c77 Various improvements 2025-10-31 18:13:30 +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
Isaac e3f7405fae Update API 2025-09-26 21:06:43 +08:00
Isaac 8c89dccf39 Update API 2025-09-26 20:05:27 +08:00
Isaac 4f4fc92345 Bot forum updates 2025-09-05 15:43:19 +02:00
Ilya Laktyushin a60a437206 Various improvements 2025-08-22 21:46:07 +04:00
Isaac 8843fbe5cb Support typing drafts 2025-08-15 09:18:11 +02:00
Ilya Laktyushin b4832ff856 Update API 2025-07-14 12:50:11 +01:00
Isaac 3e40713aad Various improvements 2025-06-26 20:29:23 +02:00
Isaac df3e2db84c Suggested posts 2025-06-20 15:37:26 +02:00
Isaac 2c53fd2273 Update API 2025-06-13 02:15:04 +08:00
Ilya Laktyushin 8709581d6a Update API 2025-06-06 09:52:11 +02:00
Ilya Laktyushin 997bcf7edf Update API 2025-05-30 12:37:57 +02:00
Isaac f681453bd0 Update API 2025-05-17 00:34:35 +08:00
Isaac 09c49d47d9 [WIP] Monoforums 2025-05-16 21:03:00 +08:00
Isaac b752a49432 Update API 2025-05-15 00:54:50 +08:00