mtproto icon indicating copy to clipboard operation
mtproto copied to clipboard

[BUG]: Wrong comments in generated code

Open jon4hz opened this issue 2 years ago • 1 comments

Description

All methods in telegram/methods_gen.go have the same comment Sends a Telegram Passport authorization form, effectively sharing data with the service.

It's already hard enough to use this library as it is but having no actual comments about what certain methods do makes it even harder. And always having to search the exact method in the telegram api specs is kinda annoying. Aren't there descriptions of the methods in the .tl files which can be adopted?

jon4hz avatar Jul 15 '22 13:07 jon4hz

There are no description in .tl, but it is possible to parse documentation and inject comments like it is done with gotd/getdoc in gotd.

ernado avatar Jul 19 '22 13:07 ernado