Beispiel #1
0
        public TelegramUdpateProcessor(ITelegramBotClient botClient, ILogger logger, IConfiguration config)
        {
            _logger = logger;
            _config = config;

            _botClient = botClient;

            _transactionsProcessor = new TransactionProcessor(botClient, logger);
        }
        public EventsProcessor(ITelegramBotClient botClient, ILogger logger, IConfiguration config)
        {
            _config = config;
            _transactionProcessor = new TransactionProcessor(botClient, logger);

            EndDateCommand.DateEnd                       += DateEnd;
            NextDateCommand.DateFound                    += DateFound;
            ReportCommand.ReportInitiated                += ReportInitiated;
            StartCommand.RegistrationInitiated           += RegistrationInitiated;
            FeedbackCommamd.FeedbackTransactionInitiated += FeedbackTransactionInitiated;
        }