Example #1
0
 public BotService(ILogger <BotService> logger, IMessenger messenger, IOptions <PillsBotOptions> options)
 {
     _logger    = logger;
     _messenger = messenger;
     _options   = options.Value;
 }
Example #2
0
 public TelegramMessenger(ILogger <TelegramMessenger> logger, ITelegramClientFactory clientFactory, IOptions <PillsBotOptions> options)
 {
     _logger        = logger;
     _options       = options.Value;
     _clientFactory = clientFactory;
 }