28 lines
385 B
Go
28 lines
385 B
Go
package config
|
|
|
|
type Config struct {
|
|
Telegram TelegramConfig
|
|
Ollama OllamaConfig
|
|
Stats StatsConfig
|
|
}
|
|
|
|
type StatsConfig struct {
|
|
Enabled bool
|
|
}
|
|
|
|
type TelegramConfig struct {
|
|
Token string
|
|
AdministratorIds []int64
|
|
OnlyAllowedChats bool
|
|
AllowedChats []int64
|
|
}
|
|
|
|
type OllamaConfig struct {
|
|
BaseUrl string
|
|
Token string
|
|
}
|
|
|
|
func ReadFromEnvAndFile() Config {
|
|
|
|
}
|