WIP: Configuration #9

Draft
skobkin wants to merge 1 commit from feature_4_configuration into main

27
config/config.go Normal file
View file

@ -0,0 +1,27 @@
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 {
}