From 5af964e05a79e64f02ebcfb3e1b19f109e32deaf Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 18 Nov 2016 09:47:24 +0300 Subject: juick-api: Telegram bot refactoring --- juick-api/src/main/java/com/juick/api/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-api/src/main/java/com/juick/api/Main.java') diff --git a/juick-api/src/main/java/com/juick/api/Main.java b/juick-api/src/main/java/com/juick/api/Main.java index d5851c12..6d7deeac 100644 --- a/juick-api/src/main/java/com/juick/api/Main.java +++ b/juick-api/src/main/java/com/juick/api/Main.java @@ -71,7 +71,7 @@ public class Main extends HttpServlet { Others others; Subscriptions subscriptions; Notifications notifications; - TelegramBotHook tgb; + TGBot tgb; SkypeEndpoint sep; String tmpDir, imgDir; @@ -92,7 +92,7 @@ public class Main extends HttpServlet { others = new Others(jdbc); subscriptions = new Subscriptions(jdbc); notifications = new Notifications(jdbc); - tgb = new TelegramBotHook(jdbc, conf.getProperty("telegram_token", "")); + tgb = new TGBot(jdbc, conf.getProperty("telegram_token", "")); sep = new SkypeEndpoint(); setupXmppComponent(conf.getProperty("xmpp_host", "localhost"), Integer.parseInt(conf.getProperty("xmpp_port", "5347")), conf.getProperty("xmpp_jid", "api.localhost"), conf.getProperty("xmpp_password")); -- cgit v1.2.3