Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { Model BotModel `json:"model"` Welcome string `json:"welcome"` GroupName string `json:"group_name"` BotName string `json:"bot_name"` Host string `json:"host"` HookAddress string `json:"hook_address"` Token string `json:"token"` Download string `json:"download"` Recognition string `json:"recognition"` Database string `json:"database"` Point float64 `json:"point"` RecognitionCMD string `json:"recognition_cmd"` KnownPath string `json:"known_path"` Rule string `json:"rule"` LocalURL string `json:"local_url"` }
Bot ...
type BotModel ¶
type BotModel int
BotModel ENUM(webhook,update,max)
func ParseBotModel ¶
ParseBotModel attempts to convert a string to a BotModel
func (BotModel) MarshalText ¶
MarshalText implements the text marshaller method
func (*BotModel) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method
Click to show internal directories.
Click to hide internal directories.