Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Json ¶
type Json interface { Marshal(v any) ([]byte, error) MarshalIndent(v any, prefix string, indent string) ([]byte, error) Unmarshal(buf []byte, v any) error NewEncoder(w io.Writer) Encoder NewDecoder(r io.Reader) Decoder }
The Json interface is used to customize the json handler. Five wrappers are provided by default. For detailed documentation, see: https://pkg.go.dev/github.com/3JoB/telebot/json.
Some methods use the default go-json because they are not under *Bot.
type Sonic ¶
type Sonic struct {
// contains filtered or unexported fields
}
func (Sonic) MarshalIndent ¶
Click to show internal directories.
Click to hide internal directories.