Пример #1
0
 public InlineQueryManager(TelegramBotClient bot, CheckListService checkListService, BotMessageManager botMessageManager, WorkCheckListService workCheckListService)
 {
     _checkListService = checkListService;
     _bot = bot;
     _botMessageManager    = botMessageManager;
     _workCheckListService = workCheckListService;
 }
Пример #2
0
        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);
        }