botdoc

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Command botdoc fetches the published Telegram Bot API documentation and inspects the structured types and methods extracted from it. It is a developer tool: a reference oracle while hand-writing the library and a way to spot API drift.

Examples:

# Summary (version, counts) from the live docs:
go run ./cmd/botdoc

# List every method name:
go run ./cmd/botdoc -methods

# Show the fields and return type of one definition:
go run ./cmd/botdoc -name SendMessage
go run ./cmd/botdoc -name Message

# Dump the whole extracted API as JSON (e.g. to diff across versions):
go run ./cmd/botdoc -json > api.json

# Work offline from a saved page:
go run ./cmd/botdoc -file api.html -types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL