Home

Awesome

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.