package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Nov 10, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package spec exposes the embedded Telegram Bot API method catalog.
type Field struct {
Name string `json:"name"`
Types []string `json:"types"`
Required bool `json:"required"`
Description string `json:"description"`
}
IsFile reports whether the field accepts an uploaded file.
type Method struct {
Name string `json:"name"`
Href string `json:"href"`
Description []string `json:"description"`
Returns []string `json:"returns"`
Fields []Field `json:"fields"`
}
Short returns the first sentence of the method description without the
boilerplate "Use this method to" prefix.
type Spec struct {
Version string `json:"version"`
ReleaseDate string `json:"release_date"`
Methods map[string]Method `json:"methods"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.