#pragma once #include #include #include #include namespace config { struct InvalidConfigException : std::exception { inline InvalidConfigException(const char *message) : message(message) {}; const char *message; }; struct VkSourceConfig { std::variant id; std::string link; }; struct TgSourceConfig { long id; std::string link; }; struct AppConfig { AppConfig(const std::string &filename); std::string vkServiceKey; long tgApiId; std::string tgApiHash; std::string tgPhoneNumber; std::vector vkSources; std::vector tgSources; long tgDestinationId; }; }