Configuration draft.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Alexey Skobkin 2024-03-11 23:59:11 +03:00
parent 5035a73884
commit af8584b105
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7

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