public TelegramBotHostedService(TelegramBotClient client, ITelegramResponseHandler responseHandler) { _client = client; _responseHandler = responseHandler; _client.OnMessage += OnMessageReceived; _client.OnCallbackQuery += OnCallbackQuery; _client.OnReceiveError += OnReceiveError; _client.OnReceiveGeneralError += OnReceiveGeneralError; }
public TelegramBotController(ITelegramResponseHandler responseHandler) { _responseHandler = responseHandler ?? throw new ArgumentNullException(nameof(responseHandler)); }