You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
package org.telegram;
|
|
|
|
|
|
|
|
|
|
import org.telegram.updateshandlers.*;
|
|
|
|
|
import org.telegram.updatesreceivers.Webhook;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author Ruben Bermudez
|
|
|
|
|
* @version 1.0
|
|
|
|
|
* @brief Main class to create all bots
|
|
|
|
|
* @date 20 of June of 2015
|
|
|
|
|
*/
|
|
|
|
|
public class Main {
|
|
|
|
|
private static Webhook webhook;
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
|
|
|
|
|
if (BuildVars.useWebHook) {
|
|
|
|
|
webhook = new Webhook();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
initBots();
|
|
|
|
|
|
|
|
|
|
if (BuildVars.useWebHook) {
|
|
|
|
|
webhook.startServer();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static void initBots() {
|
|
|
|
|
UpdatesCallback weatherBot = new WeatherHandlers(webhook);
|
|
|
|
|
UpdatesCallback channelBot = new ChannelHandlers(webhook);
|
|
|
|
|
UpdatesCallback transifexBot = new TransifexHandlers(webhook);
|
|
|
|
|
UpdatesCallback filesBot = new FilesHandlers(webhook);
|
|
|
|
|
UpdatesCallback directionsBot = new DirectionsHandlers(webhook);
|
|
|
|
|
UpdatesCallback raeBot = new RaeHandlers(webhook);
|
|
|
|
|
}
|
|
|
|
|
}
|