it.netgrid.got.telegram.Main Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegram-connector Show documentation
Show all versions of telegram-connector Show documentation
Bauer's stand-alone connector to the Telegram API
package it.netgrid.got.telegram;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import com.google.inject.Guice;
import com.google.inject.Injector;
import it.netgrid.got.telegram.inject.TelegramConnectorModule;
public class Main {
static final int POOL_SIZE=1;
public static void main(String[] args) {
ExecutorService executor=Executors.newFixedThreadPool(POOL_SIZE);
Injector injector = Guice.createInjector(new TelegramConnectorModule());
TelegramConnector connector = (injector.getInstance(TelegramConnector.class));
executor.execute(connector);
}
}