Package com.jtelegram.api.update
Class PollingUpdateRunnable
- java.lang.Object
-
- com.jtelegram.api.update.PollingUpdateRunnable
-
- All Implemented Interfaces:
java.lang.Runnable
public class PollingUpdateRunnable extends java.lang.Object implements java.lang.Runnable
-
-
Constructor Summary
Constructors Constructor Description PollingUpdateRunnable(TelegramBot bot, PollingUpdateProvider owner)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends Update>
voidhandleUpdate(TelegramBot bot, long maxAge, UpdateType<T> type, Update update)
static <T extends Update>
voidhandleUpdate(TelegramBot bot, UpdateType<T> type, Update update)
void
handleUpdates(Update[] updates)
void
run()
-
-
-
Constructor Detail
-
PollingUpdateRunnable
public PollingUpdateRunnable(TelegramBot bot, PollingUpdateProvider owner)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
handleUpdates
public void handleUpdates(Update[] updates)
-
handleUpdate
public static <T extends Update> void handleUpdate(TelegramBot bot, UpdateType<T> type, Update update)
-
handleUpdate
public static <T extends Update> void handleUpdate(TelegramBot bot, long maxAge, UpdateType<T> type, Update update)
-
-