From 72dcb402daa3ba822c86e3a27509a778e629a314 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 14 Oct 2017 20:27:16 +0300 Subject: dependency updates --- juick-api/src/main/java/com/juick/api/TelegramBotManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'juick-api/src/main/java/com/juick') 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()) { -- cgit v1.2.3