public CommandHandler( IServiceProvider serviceProvider, IAvailableCommandsService availableCommandsService) { this.serviceProvider = serviceProvider; this.availableCommandsService = availableCommandsService; }
public Bot( ICommandHandler commandHandler, IAvailableCommandsService availableCommandsService) { this.commandHandler = commandHandler; httpClient = new HttpClient(); string apiKey = GetApiKey(); telegramBotClient = new TelegramBotClient(apiKey, httpClient); this.availableCommandsService = availableCommandsService; }