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.
31 lines
1005 B
31 lines
1005 B
package org.telegram;
|
|
|
|
import org.telegram.services.BotLogger;
|
|
import org.telegram.telegrambots.TelegramApiException;
|
|
import org.telegram.telegrambots.TelegramBotsApi;
|
|
import org.telegram.updateshandlers.*;
|
|
|
|
/**
|
|
* @author Ruben Bermudez
|
|
* @version 1.0
|
|
* @brief Main class to create all bots
|
|
* @date 20 of June of 2015
|
|
*/
|
|
public class Main {
|
|
private static final String LOGTAG = "MAIN";
|
|
|
|
public static void main(String[] args) {
|
|
|
|
TelegramBotsApi telegramBotsApi = new TelegramBotsApi();
|
|
try {
|
|
telegramBotsApi.registerBot(new ChannelHandlers());
|
|
telegramBotsApi.registerBot(new DirectionsHandlers());
|
|
telegramBotsApi.registerBot(new RaeHandlers());
|
|
telegramBotsApi.registerBot(new WeatherHandlers());
|
|
telegramBotsApi.registerBot(new TransifexHandlers());
|
|
telegramBotsApi.registerBot(new FilesHandlers());
|
|
} catch (TelegramApiException e) {
|
|
BotLogger.error(LOGTAG, e);
|
|
}
|
|
}
|
|
}
|
|
|