gotd / tl

TL (Type Language) parser for telegram's mtproto
MIT License
23 stars 6 forks source link

feat: support TON #33

Open andreypfau opened 7 months ago

andreypfau commented 7 months ago
curl -s "https://raw.githubusercontent.com/ton-blockchain/ton/master/tl/generate/scheme/lite_api.tl" \
>     | go run github.com/gotd/tl/cmd/tl-print
panic: failed to parse line 15: definition: failed to parse param: failed to parse type: invalid name "4*["

goroutine 1 [running]:
main.main()
        /Users/andreypfau/GolandProjects/tl/cmd/tl-print/main.go:13 +0x140
exit status 2
andreypfau commented 7 months ago

https://github.com/tdlib/td works fine with all .TL files in: https://github.com/ton-blockchain/ton/tree/master/tl/generate/scheme

ernado commented 7 months ago

Yes, unfortunately only subset (used in telegram) of TL is supported and implementation is far from being full.

Currently I’m out of capacity to implement this, but I’m very open for contributions.