some refactoring
This commit is contained in:
@@ -1,4 +1,27 @@
|
||||
package PACKAGE_NAME;
|
||||
import hdvtdev.telegram.core.TelegramBot;
|
||||
import hdvtdev.telegram.core.UpdateConsumer;
|
||||
import hdvtdev.telegram.core.objects.Update;
|
||||
import hdvtdev.telegram.longpolling.okhttp.OkHttpTelegramBot;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
|
||||
public static void main(String... a) {
|
||||
|
||||
TelegramBot bot = new OkHttpTelegramBot.Builder(a[0]).enableHandlers(true).updateConsumer(new Upd()).build();
|
||||
|
||||
}
|
||||
|
||||
public static final class Upd implements UpdateConsumer {
|
||||
|
||||
@Override
|
||||
public void getUpdates(List<Update> updates) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user