public DvbTelegramBot(IConfiguration config, CloudTable favoriteStopTable) { _stopService = new StopService(); _favoriteStopService = new FavoriteStopService(new FavoriteStopRepository(favoriteStopTable, new StopRepository())); var token = config["TelegramBotToken"]; var botClient = new TelegramBotClient(token); _sendMessageService = new SendMessageService(botClient); }
public FavoriteStopsCommand(ISendMessageService sendMessageService, IFavoriteStopService favoriteStopService) { _sendMessageService = sendMessageService; _favoriteStopService = favoriteStopService; }
public ShowDeparturesCommand(ISendMessageService sendMessageService, IStopService stopService, IFavoriteStopService favoriteStopService) { _sendMessageService = sendMessageService; _stopService = stopService; _favoriteStopService = favoriteStopService; }