mtproto icon indicating copy to clipboard operation
mtproto copied to clipboard

update to latest layer 129

Open jackfreed opened this issue 3 years ago • 2 comments

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

any idea?

jackfreed avatar Jun 08 '21 15:06 jackfreed

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

quenbyako avatar Jun 08 '21 16:06 quenbyako

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

jackfreed avatar Jun 09 '21 16:06 jackfreed