コード例 #1
0
 public TelegramCommandHandlerService(IChatConfigurationService chatConfigurationService,
                                      ITelegramBotClientWrapper telegramBotClient,
                                      IEnumerable <ITelegramBotCommand> botCommands)
 {
     _chatConfigurationService = chatConfigurationService;
     _client      = telegramBotClient;
     _botCommands = botCommands;
 }
コード例 #2
0
 public TelegramBotHostedService(ILogger <TelegramBotHostedService> logger,
                                 ITelegramBotClient telegramBotClient,
                                 IEnumerable <IGrammarService> grammarServices,
                                 IChatConfigurationService chatConfigurationService,
                                 IWebHostEnvironment webHostEnvironment)
 {
     _logger                   = logger;
     _grammarServices          = grammarServices;
     _chatConfigurationService = chatConfigurationService;
     _webHostEnvironment       = webHostEnvironment;
     _client                   = telegramBotClient;
 }
コード例 #3
0
 public SettingsCommand(IChatConfigurationService chatConfigurationService,
                        ITelegramBotClientWrapper telegramBotClient)
     : base(telegramBotClient)
 {
     _chatConfigurationService = chatConfigurationService;
 }
コード例 #4
0
 public AddWhiteListCommand(IChatConfigurationService chatConfigurationService,
                            ITelegramBotClientWrapper telegramBotClient)
     : base(telegramBotClient)
 {
     _chatConfigurationService = chatConfigurationService;
 }