GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gotd/getdoc: Telegram documentation parser

BranchesTags
Open more actions menu

Latest commit

 

History

1,780 Commits
1,780 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
_schema
_schema
 
 
_testdata
_testdata
 
 
cmd/getdoc
cmd/getdoc
 
 
dl
dl
 
 
href
href
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.golangci.yml
.golangci.yml
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
constructor.go
constructor.go
 
 
constructor_test.go
constructor_test.go
 
 
extract.go
extract.go
 
 
extract_test.go
extract_test.go
 
 
getdoc.go
getdoc.go
 
 
go.coverage.sh
go.coverage.sh
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
go.test.sh
go.test.sh
 
 
index.go
index.go
 
 
index_test.go
index_test.go
 
 
links.go
links.go
 
 
load.go
load.go
 
 
load_example_test.go
load_example_test.go
 
 
load_test.go
load_test.go
 
 
method.go
method.go
 
 
method_test.go
method_test.go
 
 
type.go
type.go
 
 
type_test.go
type_test.go
 
 

Repository files navigation

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

Resources

Readme
MIT license

Security policy

Security policy
Activity
Custom properties

Stars

8 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.