Skip to content

Commit

Permalink
Merge pull request #1256 from gotd/feat/layer-167
Browse files Browse the repository at this point in the history
feat: layer 167
  • Loading branch information
ernado authored Dec 10, 2023
2 parents 84eb224 + 32c0208 commit 3d8cb14
Show file tree
Hide file tree
Showing 149 changed files with 10,518 additions and 1,196 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ generate:
download_schema:
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
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
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
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
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
.PHONY: download_schema

download_public_keys:
Expand Down
7 changes: 0 additions & 7 deletions _schema/layer.tl

This file was deleted.

90 changes: 69 additions & 21 deletions _schema/tdesktop.tl

Large diffs are not rendered by default.

88 changes: 65 additions & 23 deletions _schema/tdlib.tl

Large diffs are not rendered by default.

94 changes: 70 additions & 24 deletions _schema/telegram.tl

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cmd/dltl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func main() {
}
defer func() { _ = res.Body.Close() }()
if res.StatusCode/100 != 2 {
panic(fmt.Sprintf("status code %d", res.StatusCode))
panic(fmt.Sprintf("%s %d", u.String(), res.StatusCode))
}

// Parsing in-place.
Expand Down
10 changes: 5 additions & 5 deletions examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
go.uber.org/atomic v1.11.0
go.uber.org/zap v1.26.0
golang.org/x/sync v0.5.0
golang.org/x/term v0.14.0
golang.org/x/term v0.15.0
golang.org/x/time v0.3.0
gopkg.in/natefinch/lumberjack.v2 v2.2.1
)
Expand All @@ -33,7 +33,7 @@ require (
github.com/golang/snappy v0.0.4 // indirect
github.com/gotd/ige v0.2.2 // indirect
github.com/gotd/neo v0.1.5 // indirect
github.com/klauspost/compress v1.17.3 // indirect
github.com/klauspost/compress v1.17.4 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
Expand All @@ -42,10 +42,10 @@ require (
go.opentelemetry.io/otel v1.21.0 // indirect
go.opentelemetry.io/otel/trace v1.21.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.15.0 // indirect
golang.org/x/crypto v0.16.0 // indirect
golang.org/x/exp v0.0.0-20230116083435-1de6713980de // indirect
golang.org/x/net v0.18.0 // indirect
golang.org/x/sys v0.14.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sys v0.15.0 // indirect
nhooyr.io/websocket v1.8.10 // indirect
rsc.io/qr v0.2.0 // indirect
)
Expand Down
89 changes: 22 additions & 67 deletions examples/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/go-faster/jx v1.1.0
github.com/go-faster/xor v1.0.0
github.com/go-openapi/inflect v0.19.0
github.com/gotd/getdoc v0.36.0
github.com/gotd/getdoc v0.37.0
github.com/gotd/ige v0.2.2
github.com/gotd/neo v0.1.5
github.com/gotd/tl v0.4.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/gotd/getdoc v0.36.0 h1:JHFUZrDo6Dv/R0HmjpPmGvX9Kw8aHH8GY7+8M09K+XE=
github.com/gotd/getdoc v0.36.0/go.mod h1:yS2cctXnMY1Ju3QZaUxSzHlgOpqsUB+MkhA7r1hm2o0=
github.com/gotd/getdoc v0.37.0 h1:tnw5xHZZTU8vXgT5K/lBtLQxmRx730Lv+hMQ7gEMn+Y=
github.com/gotd/getdoc v0.37.0/go.mod h1:yS2cctXnMY1Ju3QZaUxSzHlgOpqsUB+MkhA7r1hm2o0=
github.com/gotd/ige v0.2.2 h1:XQ9dJZwBfDnOGSTxKXBGP4gMud3Qku2ekScRjDWWfEk=
github.com/gotd/ige v0.2.2/go.mod h1:tuCRb+Y5Y3eNTo3ypIfNpQ4MFjrnONiL2jN2AKZXmb0=
github.com/gotd/neo v0.1.5 h1:oj0iQfMbGClP8xI59x7fE/uHoTJD7NZH9oV1WNuPukQ=
Expand Down
88 changes: 88 additions & 0 deletions telegram/query/cached/queries.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions tg/e2e/tl_message_entity_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions tg/tl_account_finish_takeout_session_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion tg/tl_account_get_default_background_emojis_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions tg/tl_account_init_takeout_session_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3d8cb14

Please sign in to comment.