29 lines
688 B
Java
29 lines
688 B
Java
import CORE.Core;
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.telegram.telegrambots.ApiContextInitializer;
|
|
import org.telegram.telegrambots.meta.TelegramBotsApi;
|
|
import org.telegram.telegrambots.meta.exceptions.TelegramApiException;
|
|
|
|
public class Main {
|
|
|
|
private static Logger log = LoggerFactory.getLogger(Main.class);
|
|
|
|
public static void main(String[] args) {
|
|
|
|
log.info("Startup of bot");
|
|
|
|
ApiContextInitializer.init();
|
|
|
|
TelegramBotsApi botsApi = new TelegramBotsApi();
|
|
|
|
try {
|
|
botsApi.registerBot(new Core());
|
|
} catch (TelegramApiException e) {
|
|
log.error(e.toString());
|
|
}
|
|
}
|
|
|
|
} |