Skip to content

Commit

Permalink
Add source code link
Browse files Browse the repository at this point in the history
  • Loading branch information
mechakotik committed Dec 6, 2023
1 parent 64b1040 commit a5ce8f4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private void processFile(Long id, Document document) throws Exception {
}

private void sendText(Long id, String text) throws Exception {
SendMessage sm = SendMessage.builder().chatId(id.toString()).text(text).parseMode("HTML").build();
SendMessage sm = SendMessage.builder().chatId(id.toString()).text(text).parseMode("HTML").disableWebPagePreview(true).build();
execute(sm);
}

Expand Down Expand Up @@ -197,7 +197,8 @@ private void sendHelp(Long id) throws Exception {
text += "\nСписок команд:\n";
text += "/help - условие, список команд\n";
text += "/score - баллы по всем тестам\n";
text += "/standings - таблица";
text += "/standings - таблица\n\n";
text += "<a href=\"https://github.com/mechakotik/TelegramOpenTests\">Исходный код</a>\n";
sendText(id, text);
}

Expand Down

0 comments on commit a5ce8f4

Please sign in to comment.