public TelegramHook(String authKey, RedditLiveBot instance) { this.instance = instance; bot = TelegramBot.login(authKey); bot.startUpdates(false); bot.getEventsManager().register(this); LogHandler.log("Connected to Telegram."); liveFeedHandler = new LiveFeedHandler(bot); instance.sendToAdmins("Bot has connected, running build #" + RedditLiveBot.BUILD); this.initializeCommands(); }