From af8584b1056c83ba195211d0aea7e100c50b4c04 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 11 Mar 2024 23:59:11 +0300 Subject: [PATCH] Configuration draft. --- config/config.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 config/config.go diff --git a/config/config.go b/config/config.go new file mode 100644 index 0000000..4ea85e2 --- /dev/null +++ b/config/config.go @@ -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 { + +} -- 2.43.4