public InlineQueryManager(TelegramBotClient bot, CheckListService checkListService, BotMessageManager botMessageManager, WorkCheckListService workCheckListService) { _checkListService = checkListService; _bot = bot; _botMessageManager = botMessageManager; _workCheckListService = workCheckListService; }
public ChecklistBotService(BotConfig botToken, ChecklistBotContext botcontext) { var context = botcontext; bot = new TelegramBotClient(botToken.BotToken); _checkListService = new CheckListService(context); _workCheckListService = new WorkCheckListService(context); _botMessageManager = new BotMessageManager(bot, _workCheckListService); _inlineQueryManager = new InlineQueryManager(bot, _checkListService, _botMessageManager, _workCheckListService); }