示例#1
0
 public TelegramBotService(ILogger <TelegramBotService> logger
                           , IConfiguration configuration
                           , IUserService userService
                           , IMessageService messageService
                           , IResolverUrlService resolverUrlService
                           , IAzureMachineLearningService azureMachineLearningService
                           )
 {
     _logger                      = logger;
     _userService                 = userService;
     _messageService              = messageService;
     _resolverUrlService          = resolverUrlService;
     _azureMachineLearningService = azureMachineLearningService;
     _telegramBot                 = new TelegramBotClient(configuration["TelegramBotToken"]);
     _basePathImageFolder         = configuration["BasePathImageFolder"];
     _IsEnableAML                 = Boolean.Parse(configuration["IsEnableAML"]);
     _apiKey                      = configuration["YandexApiKey"];
 }
 public UrlController(IResolverUrlService resolverUrlService)
 {
     _resolverUrlService = resolverUrlService;
 }