Skip to content

Commit

Permalink
Switched info output to use markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Flameish committed Jan 18, 2021
1 parent 6ba9842 commit f257c7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/system/bots/Telegram.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ private void processMessage(Message message) {
GrabberUtils.info(messageTxt);

if(messageTxt.startsWith("/info") || messageTxt.startsWith("/start")) {
novelly.execute(new SendMessage(chatId, getStringFromFile(infoFile)));
novelly.execute(new SendMessage(chatId, getStringFromFile(infoFile))
.parseMode(ParseMode.Markdown)
.disableWebPagePreview(true));
}
else if(messageTxt.startsWith("/sources")) {
novelly.execute(new SendMessage(chatId, getStringFromFile(supportedSourcesFile))
Expand Down

0 comments on commit f257c7b

Please sign in to comment.