Commit graph

776 commits

Author SHA1 Message Date
isaac
ef9c1def4e Update API 2026-06-04 16:37:07 +02:00
isaac
ef7d582849 Update consumers for regenerated TL API
Regenerated TelegramApi sources and updated the affected consumers:
- InstantPage ordered-list encode: inputPageBlockOrderedList -> pageBlockOrderedList
- ChatContextResult: handle new constructor (exhaustive switch)
- JoinChannel/JoinLink: chatInviteJoinResultWebView now (botId, webview, users)
- WebUI chat-context-result preview consumers
2026-05-29 00:55:12 +02:00
isaac
38464954b0 Update API 2026-05-24 00:24:21 +04:00
isaac
3f09a1f325 WIP 2026-05-20 00:34:25 +08:00
isaac
13a153aff2 WIP 2026-05-20 00:33:08 +08:00
Ilya Laktyushin
d212968040 Update API 2026-04-28 20:35:06 +02:00
Ilya Laktyushin
9c15b8c27d Various improvements 2026-04-25 17:32:26 +02:00
Ilya Laktyushin
f41630083a Various improvements 2026-04-24 03:16:14 +02:00
isaac
2dd07ef8cc TelegramApi: regenerate Api*/SecretApiLayer*.swift with safe flag unwrap
Mechanical regeneration after the SwiftTL fix. Every
'if Int(_N!) & Int(1 << K) != 0 {...}' gate and matching
'_cM = (Int(_N!) & ...) == 0) || ...' validation in parse_<ctor>
now reads 'Int(_N ?? 0)' instead of force-unwrapping. ~2168 sites
changed across the 41 flat Api*.swift files plus the 11 layered
SecretApiLayer*.swift files. No other content change.

Full Bazel build verified green with the regenerated sources.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 23:44:35 +04:00
isaac
3559ee9f1d TelegramApi: regenerate SecretApiLayer*.swift via SwiftTL
Replaces the hand-written layer 8/46/73/101/144 files with SwiftTL
output and adds the previously-unpublished layers 17/20/23/45/66/143.
Per-layer struct names (SecretApi8, SecretApi46, ...) and public
enum case signatures are unchanged for the consumers.

The regenerated cumulative snapshots now include every constructor
declared in secret_scheme.tl, including decryptedMessageActionTyping
(layer 17) which the hand-written files had elided. Switch statements
over DecryptedMessageAction in ProcessSecretChatIncomingDecryptedOperations
gain the missing case alongside .decryptedMessageActionNoop (both are
no-ops in the consumer-side state-machine).

BUILD uses glob("Sources/**/*.swift") so no BUILD update required.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 23:02:42 +04:00
isaac
25ddc21780 Update API 2026-04-21 15:09:07 +04:00
Isaac
b8e985b939 TelegramApi: regenerate schema for AI-compose tone + webpage attribute
Adds aicompose.createTone/updateTone/deleteTone functions,
InputAiComposeTone constructor, and webPageAttributeAiComposeTone.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 23:45:18 +02:00
Isaac
0095bfad39 Temp 2026-04-15 13:18:46 +02:00
Ilya Laktyushin
f160fb99d9 Various improvements 2026-03-29 16:23:09 +02:00
Isaac
911ebd07ab Update 2026-03-27 19:23:09 +08:00
Isaac
2907ddbe46 Unseen polls 2026-03-27 18:30:01 +08:00
Ilya Laktyushin
6b6ba070c7 Update API 2026-03-26 09:26:15 +01:00
Ilya Laktyushin
c165cbe434 Update API 2026-03-22 18:41:53 +01:00
Ilya Laktyushin
34f5b9d4c2 Update API 2026-03-20 12:48:05 +01:00
Ilya Laktyushin
2b9d97b944 Update API 2026-03-17 00:04:50 +01:00
Ilya Laktyushin
3a311f75bd Update API 2026-03-16 13:37:36 +01:00
Ilya Laktyushin
bf3ddc99f8 Update scheme 2026-03-12 11:43:27 +01:00
Ilya Laktyushin
6c1376169c Update API 2026-03-11 14:37:23 +01:00
Isaac
8adc7ec9a5 Temp 2026-03-09 20:23:44 +01:00
Ilya Laktyushin
654ff9e7e0 Various improvements 2026-02-24 21:44:29 +04:00
Ilya Laktyushin
5d50aa34af Various improvements 2026-02-23 21:25:25 +04:00
Isaac
3b5707fe0f Update 2026-02-19 21:20:27 +01:00
Ilya Laktyushin
9616ea2ad9 Update API 2026-02-13 14:09:36 +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
96bb624b2d Merge branch 'formatted-date-api' 2026-02-06 14:25:09 +04:00
Ilya Laktyushin
aa21a14c7d Update API [skip ci] 2026-02-06 13:35:20 +04:00
Ilya Laktyushin
e17c7d9859 Update API 2026-02-05 17:27:47 +04:00
Isaac
8e9cd79855 Fix buffer 2026-02-04 19:41:25 +08:00
Isaac
962a9ae83a Various improvements 2026-01-30 22:20:50 +08:00
Ilya Laktyushin
1d59f24bd8 Update API 2026-01-28 23:50:31 +04:00
Ilya Laktyushin
206bb40479 Update API 2026-01-22 21:21:24 +04:00
Ilya Laktyushin
823cd9993f Update API [skip ci] 2026-01-20 15:34:55 +04:00
Ilya Laktyushin
ea9d8db1d3 Update API [skip ci] 2026-01-20 14:54:15 +04:00
Isaac
f444587197 Generate real API 2026-01-19 14:37:53 +08: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
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
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