some refactoring

This commit is contained in:
hdvtdev
2025-04-22 12:37:13 +03:00
parent 7b66404e3e
commit 111eafdc0a
379 changed files with 592 additions and 8633 deletions

View File

@@ -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) {
}
}
}