Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to latest layer 129 #88

Open
jackfreed opened this issue Jun 8, 2021 · 2 comments
Open

update to latest layer 129 #88

jackfreed opened this issue Jun 8, 2021 · 2 comments
Assignees
Labels
bug Something isn't working critical critical issue, must be fixed as fast as possible

Comments

@jackfreed
Copy link

when trying to update to the latest layer 129 i am getting an error about PseudoBool not found.

any idea?

@jackfreed jackfreed added the bug Something isn't working label Jun 8, 2021
@quenbyako quenbyako self-assigned this Jun 8, 2021
@quenbyako
Copy link
Member

that's definetely a bug (or my forgetfulness), i'll research it, and let you know

@quenbyako quenbyako added the critical critical issue, must be fixed as fast as possible label Jun 8, 2021
@jackfreed
Copy link
Author

just as a followup the steps i took:

git clone https://github.com/xelaj/mtproto

curl -o schemes/api_129.tl https://raw.githubusercontent.com/telegramdesktop/tdesktop/dev/Telegram/Resources/tl/api.tl

go run internal/cmd/tlgen/main.go schemes/api_129.tl telegram/

yielding:

parse schema file: unknown comment type: /////////////////////////////
///////////////////
exit status 1

after removing all the "unknown comments" (the file now starts with boolFalse#bc799737 = Bool;) and runing the auth example:

# github.com/xelaj/mtproto/telegram
../../telegram/enums_gen.go:104:2: Null redeclared in this block
	previous declaration at ../../telegram/enums_gen.go:101:6
../../telegram/enums_gen.go:107:7: Null is not a type
../../telegram/enums_gen.go:116:7: Null is not a type
../../telegram/methods_gen.go:23:158: undefined: tl.PseudoBool
../../telegram/methods_gen.go:48:49: undefined: tl.PseudoBool
../../telegram/methods_gen.go:96:58: undefined: tl.PseudoBool
../../telegram/methods_gen.go:117:61: undefined: tl.PseudoBool
../../telegram/methods_gen.go:139:73: undefined: tl.PseudoBool
../../telegram/methods_gen.go:196:56: undefined: tl.PseudoBool
../../telegram/methods_gen.go:217:70: undefined: tl.PseudoBool
../../telegram/methods_gen.go:217:70: too many errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical critical issue, must be fixed as fast as possible
Projects
None yet
Development

No branches or pull requests

2 participants