WIP: Configuration #9

Draft
skobkin wants to merge 1 commits from feature_4_configuration into main
1 changed files with 27 additions and 0 deletions
Showing only changes of commit af8584b105 - Show all commits

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 {
}