Markdown entfernt

This commit is contained in:
Patrick Haßel 2024-06-10 08:51:04 +02:00
parent fcc6403dbf
commit 17564c0d2e
2 changed files with 1 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
/offers.json
/.idea/
/telegram.token
/*.db
target/
!.mvn/wrapper/maven-wrapper.jar

View File

@ -142,7 +142,6 @@ public class Bot extends TelegramLongPollingBot {
final InputFile inputFile = offer.getImage().isEmpty() ? new InputFile(new ByteArrayInputStream(NO_IMAGE), "[Kein Bild]") : new InputFile(offer.getImage());
final SendPhoto send = new SendPhoto(CHAT_ID + "", inputFile);
send.setCaption(createText(offer));
send.setParseMode("Markdown");
send.setReplyMarkup(createKeyboard(offer));
final Message message = execute(send);