21 Commits
Author SHA1 Message Date
isaacandClaude Opus 4.7 c0acc09cb1 Postbox -> TelegramEngine wave 44
Migrate RenderedChannelParticipant.peers from [PeerId: Peer] to
[EnginePeer.Id: EnginePeer]. Closes the wave-41 ratchet — the public
struct no longer leaks raw Peer types in any field (presences stays
Postbox-typed; separate migration).

Consumer-surface: -10 bridges. Dropped 6 EnginePeer(peer) read-wraps
at participant.peers[...] extraction sites across
ChannelAdminsController, ChannelMembersSearchContainerNode,
ChannelBlacklistController. Dropped 5 .mapValues({ $0._asPeer() })
constructor-unwrap transforms in ChannelAdminsController,
ChannelMembersSearchContainerNode, ChannelMembersSearchControllerNode.
Added 2 ._asPeer() unwraps in ChatRecentActionsHistoryTransition at
the two iteration sites (line 673 via participant.peers, line 2273
via new.peers in participantSubscriptionExtended) where the iterated
value is inserted into a raw-Peer SimpleDictionary.

TelegramCore producers: 8 files build the local peers dict inside
postbox.transaction and wrap at the insertion point. ChannelMembers,
RequestStartBot, ChannelOwnershipTransfer, JoinChannel, AddPeerMember,
PeerAdmins, ChannelBlacklist, Ranks.

2-iteration build convergence. Iteration-1 surfaced new.peers at
ChatRecentActionsHistoryTransition:2272 that the plan's participant.peers
pre-flight grep missed; wider grep now confirms the two iteration sites
are the complete surface.

No unit tests in this project; full Telegram/Telegram build verified
under configuration=debug_sim_arm64.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 23:21:05 +04:00
isaacandClaude Opus 4.7 493f3103b3 Postbox -> TelegramEngine waves 37-43 + wave 44 design/plan (squashed)
Squashes 20 commits — the implementation and outcome commits of
waves 37 through 43 plus wave 44's spec and implementation-plan
docs — into a single commit. Per-wave lessons remain recorded in
docs/superpowers/postbox-refactor-log.md. The unrelated "Add swift
svg" commit is preserved separately outside this squash.

Wave 37 — peerTokenTitle: peer Peer → EnginePeer (1 file)
Wave 38 — canSendMessagesToPeer: peer Peer → EnginePeer (12 files)
Wave 39 — AccountContext.makePeerInfoController: peer Peer → EnginePeer (52 files)
Wave 40 — makeChatQrCodeScreen + makeChatRecentActionsController bundle (8 files)
Wave 41 — RenderedChannelParticipant.peer: Peer → EnginePeer (28 files)
Wave 42 — PeerInfoScreenData.peer: Peer? → EnginePeer? (17 files)
Wave 43 — PeerInfoScreen 6 helpers: peer Peer? → EnginePeer? (12 files)
Wave 44 — RenderedChannelParticipant.peers design doc + implementation plan
         (impl and outcome land in subsequent commits, not part of squash)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 23:19:43 +04:00
Mikhail Filimonov b5973fed13 canManageBots flag 2026-03-27 16:18:42 +01:00
Isaac bc7858ad2b AI editing 2026-03-20 18:23:45 +01:00
Isaac a2d5c530a5 Various improvements 2026-03-18 00:27:13 +01:00
Mikhail Filimonov 5b04ae1131 update api 2026-03-12 19:29:26 +01:00
Ilya Laktyushin 189d25c32e Update API 2026-02-10 12:58:04 +04:00
IsaacandClaude Opus 4.5 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
IsaacandClaude Opus 4.5 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
Ilya Laktyushin b2351194d4 Various fixes 2025-02-24 17:11:08 +04:00
Ilya Laktyushin dc68eab568 Merge branch 'master' into stars-subscriptions 2024-07-30 11:29:42 +02:00
Isaac b6f8f8333d Bug fixes 2024-04-03 15:43:12 +04:00
Isaac 38bc517122 Group invitation sheet 2024-03-26 15:57:00 +04:00
Isaac ef12bf9ce6 Chat links and other features 2024-03-23 00:00:08 +04:00
Ilya Laktyushin 6795603c4e Add support for multiple users selection in bots peer requests 2023-12-21 04:04:17 +04:00
Mike Renoir 45e7cc9d28 latest changes 2023-01-12 16:43:18 +04:00
Ilya Laktyushin 14627e2986 Various fixes 2022-04-23 20:03:10 +04:00
Ali 7c8ad70014 Merge branch 'master' into experimental-2 2021-07-21 22:04:58 +02:00
Ali 1a04fb4408 Refactor SyncCore back into TelegramCore 2021-07-21 21:43:20 +02:00
Ali 35f6422923 Merge branch 'master' into features/64-bit 2021-07-14 23:31:33 +02:00
Ali 2c7264dff0 Refactoring 2021-07-08 03:02:48 +04:00