aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-10-14 20:27:16 +0300
committerGravatar Vitaly Takmazov2017-10-14 20:27:16 +0300
commit72dcb402daa3ba822c86e3a27509a778e629a314 (patch)
tree4e7944b2b77ffd9a09888c79b972591120915270
parentffe9ea5db1956ab7570d467ce8388aac8a474fe0 (diff)
dependency updates
-rw-r--r--build.gradle2
-rw-r--r--juick-api/build.gradle2
-rw-r--r--juick-api/src/main/java/com/juick/api/TelegramBotManager.java3
3 files changed, 3 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index 78dbed67..089e2961 100644
--- a/build.gradle
+++ b/build.gradle
@@ -23,7 +23,7 @@ allprojects {
project.ext {
springFrameworkVersion = '5.0.0.RELEASE'
springSecurityVersion = '4.2.3.RELEASE'
- jacksonVersion = '2.9.1'
+ jacksonVersion = '2.9.2'
slf4jVersion = '1.7.25'
logbackVersion = '1.2.3'
junitVersion = "4.12"
diff --git a/juick-api/build.gradle b/juick-api/build.gradle
index 0f351387..2d80576f 100644
--- a/juick-api/build.gradle
+++ b/juick-api/build.gradle
@@ -16,7 +16,7 @@ dependencies {
compile 'io.springfox:springfox-swagger-ui:2.7.0'
compile "org.springframework:spring-websocket:${rootProject.springFrameworkVersion}"
- compile 'com.github.pengrad:java-telegram-bot-api:3.3.0'
+ compile 'com.github.pengrad:java-telegram-bot-api:3.4.0'
compile 'org.apache.commons:commons-email:1.5'
compile 'org.imgscalr:imgscalr-lib:4.2'
diff --git a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
index 4de5c840..7e6d0b17 100644
--- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
+++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
@@ -23,7 +23,6 @@ import com.juick.service.SubscriptionService;
import com.juick.service.TelegramService;
import com.pengrad.telegrambot.Callback;
import com.pengrad.telegrambot.TelegramBot;
-import com.pengrad.telegrambot.TelegramBotAdapter;
import com.pengrad.telegrambot.model.request.InlineKeyboardButton;
import com.pengrad.telegrambot.model.request.InlineKeyboardMarkup;
import com.pengrad.telegrambot.request.SendMessage;
@@ -77,7 +76,7 @@ public class TelegramBotManager extends TextWebSocketHandler {
logger.info("telegram token is not set, exiting");
return;
}
- bot = TelegramBotAdapter.build(telegramToken);
+ bot = new TelegramBot(telegramToken);
try {
SetWebhook webhook = new SetWebhook().url("https://api.juick.com/tlgmbtwbhk");
if (!bot.execute(webhook).isOk()) {