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 Indent(dst *bytes.Buffer, src []byte, prefix string, indent string) error }
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/v2/pkg/json.
Some methods use the default sonnet because they are not under *Bot.
Click to show internal directories.
Click to hide internal directories.