Skip to content

Commit 3d8cb14

Browse files
authored
Merge pull request #1256 from gotd/feat/layer-167
feat: layer 167
2 parents 84eb224 + 32c0208 commit 3d8cb14

File tree

149 files changed

+10518
-1196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+10518
-1196
lines changed

Diff for: Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ generate:
1414
download_schema:
1515
go run ./cmd/dltl -base https://raw.githubusercontent.com/tdlib/td -branch master -dir td/generate/scheme -f telegram_api.tl -o _schema/tdlib.tl
1616
go run ./cmd/dltl -base https://raw.githubusercontent.com/telegramdesktop/tdesktop -branch dev -dir Telegram/SourceFiles/mtproto/scheme -f api.tl -o _schema/tdesktop.tl
17-
go run ./cmd/dltl -base https://raw.githubusercontent.com/telegramdesktop/tdesktop -branch dev -dir Telegram/SourceFiles/mtproto/scheme -f layer.tl -o _schema/layer.tl
18-
go run ./cmd/dltl -base https://raw.githubusercontent.com/telegramdesktop/tdesktop -branch dev -dir Telegram/SourceFiles/mtproto/scheme -f api.tl -merge _schema/legacy.tl,_schema/layer.tl -o _schema/telegram.tl
17+
go run ./cmd/dltl -base https://raw.githubusercontent.com/telegramdesktop/tdesktop -branch dev -dir Telegram/SourceFiles/mtproto/scheme -f api.tl -merge _schema/legacy.tl -o _schema/telegram.tl
1918
.PHONY: download_schema
2019

2120
download_public_keys:

Diff for: _schema/layer.tl

-7
This file was deleted.

Diff for: _schema/tdesktop.tl

+69-21
Large diffs are not rendered by default.

Diff for: _schema/tdlib.tl

+65-23
Large diffs are not rendered by default.

Diff for: _schema/telegram.tl

+70-24
Large diffs are not rendered by default.

Diff for: cmd/dltl/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func main() {
6868
}
6969
defer func() { _ = res.Body.Close() }()
7070
if res.StatusCode/100 != 2 {
71-
panic(fmt.Sprintf("status code %d", res.StatusCode))
71+
panic(fmt.Sprintf("%s %d", u.String(), res.StatusCode))
7272
}
7373

7474
// Parsing in-place.

Diff for: examples/go.mod

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
go.uber.org/atomic v1.11.0
1515
go.uber.org/zap v1.26.0
1616
golang.org/x/sync v0.5.0
17-
golang.org/x/term v0.14.0
17+
golang.org/x/term v0.15.0
1818
golang.org/x/time v0.3.0
1919
gopkg.in/natefinch/lumberjack.v2 v2.2.1
2020
)
@@ -33,7 +33,7 @@ require (
3333
github.com/golang/snappy v0.0.4 // indirect
3434
github.com/gotd/ige v0.2.2 // indirect
3535
github.com/gotd/neo v0.1.5 // indirect
36-
github.com/klauspost/compress v1.17.3 // indirect
36+
github.com/klauspost/compress v1.17.4 // indirect
3737
github.com/kr/pretty v0.3.1 // indirect
3838
github.com/kr/text v0.2.0 // indirect
3939
github.com/pkg/errors v0.9.1 // indirect
@@ -42,10 +42,10 @@ require (
4242
go.opentelemetry.io/otel v1.21.0 // indirect
4343
go.opentelemetry.io/otel/trace v1.21.0 // indirect
4444
go.uber.org/multierr v1.11.0 // indirect
45-
golang.org/x/crypto v0.15.0 // indirect
45+
golang.org/x/crypto v0.16.0 // indirect
4646
golang.org/x/exp v0.0.0-20230116083435-1de6713980de // indirect
47-
golang.org/x/net v0.18.0 // indirect
48-
golang.org/x/sys v0.14.0 // indirect
47+
golang.org/x/net v0.19.0 // indirect
48+
golang.org/x/sys v0.15.0 // indirect
4949
nhooyr.io/websocket v1.8.10 // indirect
5050
rsc.io/qr v0.2.0 // indirect
5151
)

Diff for: examples/go.sum

+22-67
Large diffs are not rendered by default.

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/go-faster/jx v1.1.0
99
github.com/go-faster/xor v1.0.0
1010
github.com/go-openapi/inflect v0.19.0
11-
github.com/gotd/getdoc v0.36.0
11+
github.com/gotd/getdoc v0.37.0
1212
github.com/gotd/ige v0.2.2
1313
github.com/gotd/neo v0.1.5
1414
github.com/gotd/tl v0.4.0

Diff for: go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
2222
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
2323
github.com/gotd/getdoc v0.36.0 h1:JHFUZrDo6Dv/R0HmjpPmGvX9Kw8aHH8GY7+8M09K+XE=
2424
github.com/gotd/getdoc v0.36.0/go.mod h1:yS2cctXnMY1Ju3QZaUxSzHlgOpqsUB+MkhA7r1hm2o0=
25+
github.com/gotd/getdoc v0.37.0 h1:tnw5xHZZTU8vXgT5K/lBtLQxmRx730Lv+hMQ7gEMn+Y=
26+
github.com/gotd/getdoc v0.37.0/go.mod h1:yS2cctXnMY1Ju3QZaUxSzHlgOpqsUB+MkhA7r1hm2o0=
2527
github.com/gotd/ige v0.2.2 h1:XQ9dJZwBfDnOGSTxKXBGP4gMud3Qku2ekScRjDWWfEk=
2628
github.com/gotd/ige v0.2.2/go.mod h1:tuCRb+Y5Y3eNTo3ypIfNpQ4MFjrnONiL2jN2AKZXmb0=
2729
github.com/gotd/neo v0.1.5 h1:oj0iQfMbGClP8xI59x7fE/uHoTJD7NZH9oV1WNuPukQ=

Diff for: telegram/query/cached/queries.gen.go

+88
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: tg/e2e/tl_message_entity_gen.go

+9-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: tg/tl_account_finish_takeout_session_gen.go

+9-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: tg/tl_account_get_default_background_emojis_gen.go

+16-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: tg/tl_account_init_takeout_session_gen.go

+8-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)