diff --git a/BotNet.CommandHandlers/BotUpdate/Message/MessageUpdateHandler.cs b/BotNet.CommandHandlers/BotUpdate/Message/MessageUpdateHandler.cs index 495cd29..58edc28 100644 --- a/BotNet.CommandHandlers/BotUpdate/Message/MessageUpdateHandler.cs +++ b/BotNet.CommandHandlers/BotUpdate/Message/MessageUpdateHandler.cs @@ -214,6 +214,14 @@ await _commandQueue.DispatchAsync( ); return; } + } catch (ParserException exc) { + await _telegramBotClient.SendTextMessageAsync( + chatId: update.Message.Chat.Id, + text: $"{exc.Message}", + parseMode: ParseMode.Html, + replyToMessageId: update.Message.MessageId, + cancellationToken: cancellationToken + ); } catch { // Suppress }