aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/Main.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-11-18 09:47:24 +0300
committerGravatar Vitaly Takmazov2016-11-18 09:47:24 +0300
commit5af964e05a79e64f02ebcfb3e1b19f109e32deaf (patch)
treef029f2b0c013e9ebba86a0e93c053e9f7a2f7146 /juick-api/src/main/java/com/juick/api/Main.java
parent66a03f1c8550ee97f98afd733355ae147a55c023 (diff)
juick-api: Telegram bot refactoring
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/Main.java')
-rw-r--r--juick-api/src/main/java/com/juick/api/Main.java4
1 files changed, 2 insertions, 2 deletions
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"));