gotd / getdoc

Telegram documentation parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getdoc

Documentation extract utilities for Telegram schema using goquery.

Used by gotd/td for embedding documentation to generated code.

Parsed documentation

Parsed documentation for 133 layer is available as 133.json with schema.

Example

Latest schema is embedded to package, so you can just use it:

doc, err := getdoc.Load(133)
if err != nil {
    panic(err)
}
fmt.Printf("Layer %d, constructors: %d\n", doc.Index.Layer, len(doc.Constructors))
// Output:
// Layer 133, constructors: 926

Reference

Please use official documentation, it is for humans, this package is not.

About

Telegram documentation parser

License:MIT License


Languages

Language:HTML 92.9%Language:Go 7.0%Language:Shell 0.1%Language:Makefile 0.1%