aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/server/TelegramBotManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/server/TelegramBotManager.java b/src/main/java/com/juick/server/TelegramBotManager.java
index 0dc8b13d..66362c19 100644
--- a/src/main/java/com/juick/server/TelegramBotManager.java
+++ b/src/main/java/com/juick/server/TelegramBotManager.java
@@ -216,14 +216,14 @@ public class TelegramBotManager implements NotificationListener {
if (StringUtils.isNotEmpty(path) && path.length() > 1) {
int mid = 0;
try {
- mid = Integer.valueOf(path.substring(3));
+ mid = Integer.parseInt(path.substring(3));
} catch (NumberFormatException e) {
logger.warn("wrong mid received");
return;
}
String prefix = String.format("#%d ", mid);
if (StringUtils.isNotEmpty(uriComponents.getFragment())) {
- int rid = Integer.valueOf(uriComponents.getFragment());
+ int rid = Integer.parseInt(uriComponents.getFragment());
prefix = String.format("#%d/%d ", mid, rid);
}
executeCommand(message.messageId(), message.from().id().longValue(),