Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotConfig ¶
type BotConfig struct {
CommandPrefix string `json:"command_prefix"`
CommandPrefixes []string `json:"command_prefixes,omitempty"`
PluginsDir string `json:"plugins_dir"`
PluginRepo string `json:"plugin_repo,omitempty"`
OwnerID int64 `json:"owner_id,omitempty"`
MaxMessageLen int `json:"max_message_len,omitempty"`
RateLimit int `json:"rate_limit,omitempty"`
}
type Config ¶
type Config struct {
Telegram TelegramConfig `json:"telegram"`
Bot BotConfig `json:"bot"`
Logger LoggerConfig `json:"logger"`
I18n I18nConfig `json:"i18n"`
}
func (*Config) GetPrefixes ¶
GetPrefixes returns all configured command prefixes.
func (*Config) GetUpdateTimeout ¶
type ConfigError ¶
type ConfigError struct {
Errors []string
}
func (*ConfigError) Error ¶
func (e *ConfigError) Error() string
type I18nConfig ¶
type I18nConfig struct {
DefaultLanguage string `json:"default_language"`
}
I18nConfig controls language behavior.
type LoggerConfig ¶
Click to show internal directories.
Click to hide internal directories.