public BotUpdateProcessor( ITelegramBotClient botClient, IChordsFormatter chordsFormatter, Func <IChordsService> chordsServiceFactory) { _botClient = botClient; _chordsFormatter = chordsFormatter; _chordsService = chordsServiceFactory(); }
public ChordsController( ITelegramBotClient botClient, IChordsService chordsService, IChordsFormatter chordsFormatter, IBotUpdateProcessor botUpdateProcessor) { _botClient = botClient; _chordsService = chordsService; _chordsFormatter = chordsFormatter; _botUpdateProcessor = botUpdateProcessor; }