fix: Escape exclamation mark in book addition confirmation message

This commit is contained in:
2025-02-17 16:32:02 +03:00
committed by Sanders
parent 426829d6db
commit a65e797b70
@@ -120,7 +120,7 @@ public class BookCreationServiceImpl implements BookCreationService {
telegramClientService.sendMessageWithMarkdown(user, "🎉 *Поздравляю с прочтением\\!*\n\n" + escapeNonMarkdown(congrat));
} catch (Exception e) {
log.error("Error generating congratulation for user {}", user.getId(), e);
telegramClientService.sendMessage(user, "📚 Спасибо за добавление книги!");
telegramClientService.sendMessage(user, "📚 Спасибо за добавление книги\\!");
}
} else {
stats = formatBookLeftStats(weeksLeft, target, read, left);