diff options
author | 2016-05-13 12:11:52 +0300 | |
---|---|---|
committer | 2016-05-13 12:11:52 +0300 | |
commit | 950177ab7959590cfd9c8678b6dbe563fcc964e0 (patch) | |
tree | 987479a0fe030b4f2f4004cb5767660c4ea12c23 /src/main/java/com/juick/api/Main.java | |
parent | 324391a3b775f6508b316f72268d776e50aff2cc (diff) |
store chats in db
Diffstat (limited to 'src/main/java/com/juick/api/Main.java')
-rw-r--r-- | src/main/java/com/juick/api/Main.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/api/Main.java b/src/main/java/com/juick/api/Main.java index 9b327e83..c632d8fc 100644 --- a/src/main/java/com/juick/api/Main.java +++ b/src/main/java/com/juick/api/Main.java @@ -81,7 +81,7 @@ public class Main extends HttpServlet implements Stream.StreamListener { users = new Users(jdbc); pm = new PM(jdbc); others = new Others(jdbc); - tgb = new TelegramBotHook(conf.getProperty("telegram_token", "")); + tgb = new TelegramBotHook(jdbc, conf.getProperty("telegram_token", "")); setupXmppComponent(conf.getProperty("xmpp_host", "localhost"), Integer.parseInt(conf.getProperty("xmpp_port", "5347")), conf.getProperty("xmpp_jid", "api.localhost"), conf.getProperty("xmpp_password")); |