Beispiel #1
0
 protected TelegramController(TelemetryClient telemetryClient, IWebHookSaltProvider webHookSaltProvider, IEnumerable <Lazy <Func <Update, IUpdateHandler>, UpdateHandlerAttribute> > updateHandlers, string?telemetryTypeName)
 {
     myWebHookSaltProvider = webHookSaltProvider;
     myTelemetryTypeName   = telemetryTypeName ?? GetType().Namespace ?? string.Empty;
     myTelemetryClient     = telemetryClient;
     myUpdateHandlers      = updateHandlers;
 }
Beispiel #2
0
 public TelegramController(IWebHookSaltProvider webHookSaltProvider, ITelegramBotClient bot, TelemetryClient telemetryClient, IEnumerable <Lazy <Func <Update, IUpdateHandler>, UpdateHandlerAttribute> > updateHandlers)
     : this(telemetryClient, webHookSaltProvider, updateHandlers, bot.GetType().Name)
 {
 }