public StatsCommand(ILogger <WordCommand> logger, IOptions <WordsBotConfiguration> configuration, IServiceScopeFactory scopeFactory) { _logger = logger; _configuration = configuration.Value; _scopeFactory = scopeFactory; _conditions = new List <Predicate <Update> > { Conditions.IsUpdateMessage, Conditions.IsMessageNotNullOrEmpty, Conditions.IsMessageSingleWord, Conditions.IsMessageCommand, update => Conditions.IsMessageBotCommand(update, _configuration.TelegramBotName, Tag) }; }
public TelegramDbContext(IOptions <WordsBotConfiguration> configuration) : base() { _configuration = configuration.Value; }
public TelegramBotWorker(ILogger <TelegramBotWorker> logger, IOptions <WordsBotConfiguration> configuration, IServiceScopeFactory scopeFactory) { _logger = logger; _configuration = configuration.Value; _scopeFactory = scopeFactory; }
public KeepAliveWorker(ILogger <KeepAliveWorker> logger, IOptions <WordsBotConfiguration> configuration, IHttpClientFactory httpClientFactory) { _logger = logger; _configuration = configuration.Value; _httpClientFactory = httpClientFactory; }
public DatabaseController(IOptions <WordsBotConfiguration> configuration) { _configuration = configuration.Value; }