Skip to content

Commit ed28ad4

Browse files
committed
✨ feat(Makefile): Add update-schema target and refresh the main_api.tl schema definitions.
1 parent c881ada commit ed28ad4

File tree

2 files changed

+23
-19
lines changed

2 files changed

+23
-19
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ BLUE := \033[0;34m
1212
BOLD := \033[1m
1313
RESET := \033[0m
1414

15-
.PHONY: venv venv-docs clean-venv clean-build clean-api clean-docs clean api docs docs-archive build tag dtag
15+
.PHONY: venv venv-docs clean-venv clean-build clean-api clean-docs clean api docs docs-archive build tag dtag update-schema
1616

1717
venv:
1818
@if [ ! -d "$(VENV)" ]; then \
@@ -72,3 +72,7 @@ tag:
7272
dtag:
7373
git tag -d $(TAG)
7474
git push origin -d $(TAG)
75+
76+
update-schema:
77+
curl -fsSL https://raw.githubusercontent.com/SychO3/tl-schema-merger/refs/heads/master/merged.tl -o compiler/api/source/main_api.tl
78+
@printf "$(GREEN)Updated main_api.tl$(RESET)\n"

compiler/api/source/main_api.tl

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
// Merged TL schema — layer 224
2-
// Generated: 2026-04-03 00:45:03 UTC
2+
// Generated: 2026-04-08 00:46:08 UTC
33
// Sources:
44
// tdlib: https://raw.githubusercontent.com/tdlib/td/refs/heads/master/td/generate/scheme/telegram_api.tl
55
// tdesktop: https://raw.githubusercontent.com/telegramdesktop/tdesktop/refs/heads/dev/Telegram/SourceFiles/mtproto/scheme/api.tl
66

7-
// int ? = Int;
8-
// long ? = Long;
9-
// double ? = Double;
10-
// string ? = String;
7+
int ? = Int;
8+
long ? = Long;
9+
double ? = Double;
10+
string ? = String;
1111

12-
// bytes = Bytes;
13-
// int256 = Int256;
12+
bytes = Bytes;
13+
int256 = Int256;
1414

15-
// true#3fedd339 = True;
15+
true#3fedd339 = True;
1616

17-
// boolFalse#bc799737 = Bool;
18-
// boolTrue#997275b5 = Bool;
17+
boolFalse#bc799737 = Bool;
18+
boolTrue#997275b5 = Bool;
1919

20-
// vector#1cb5c415 {t:Type} # [ t ] = Vector t;
20+
vector#1cb5c415 {t:Type} # [ t ] = Vector t;
2121

22-
// error#c4b9f9bb code:int text:string = Error;
22+
error#c4b9f9bb code:int text:string = Error;
2323

24-
// ipPort#d433ad73 ipv4:int port:int = IpPort;
25-
// ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort;
26-
// accessPointRule#4679b65f phone_prefix_rules:string dc_id:int ips:vector<IpPort> = AccessPointRule;
27-
// help.configSimple#5a592a6c date:int expires:int rules:vector<AccessPointRule> = help.ConfigSimple;
24+
ipPort#d433ad73 ipv4:int port:int = IpPort;
25+
ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort;
26+
accessPointRule#4679b65f phone_prefix_rules:string dc_id:int ips:vector<IpPort> = AccessPointRule;
27+
help.configSimple#5a592a6c date:int expires:int rules:vector<AccessPointRule> = help.ConfigSimple;
2828

29-
// inputPeerPhotoFileLocationLegacy#27d69997 flags:# big:flags.0?true peer:InputPeer volume_id:long local_id:int = InputFileLocation;
30-
// inputStickerSetThumbLegacy#dbaeae9 stickerset:InputStickerSet volume_id:long local_id:int = InputFileLocation;
29+
inputPeerPhotoFileLocationLegacy#27d69997 flags:# big:flags.0?true peer:InputPeer volume_id:long local_id:int = InputFileLocation;
30+
inputStickerSetThumbLegacy#dbaeae9 stickerset:InputStickerSet volume_id:long local_id:int = InputFileLocation;
3131

3232
---functions---
3333

0 commit comments

Comments
 (0)