We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba99202 commit 070a1daCopy full SHA for 070a1da
1 file changed
src/main/java/com/jp/epubbot/service/BookBot.java
@@ -80,10 +80,10 @@ public void onUpdateReceived(Update update) {
80
}
81
Document doc = update.getMessage().getDocument();
82
String fileName = doc.getFileName();
83
- if (fileName != null && (fileName.toLowerCase().endsWith(".epub") || fileName.toLowerCase().endsWith(".txt"))) {
+ if (fileName != null && (fileName.toLowerCase().endsWith(".epub") || fileName.toLowerCase().endsWith(".txt") || fileName.toLowerCase().endsWith(".pdf"))) {
84
handleBookFile(chatId, doc);
85
} else {
86
- sendText(chatId, "请发送 .epub 格式的文件。");
+ sendText(chatId, "请发送 .epub .txt .pdf 格式的文件。");
87
88
return;
89
0 commit comments