Package dev.tobee.telegram
Class LongPollingTelegramBot
java.lang.Object
dev.tobee.telegram.LongPollingTelegramBot
- All Implemented Interfaces:
TelegramBot
-
Constructor Summary
ConstructorsConstructorDescriptionLongPollingTelegramBot(TbdAsyncClient tbdTGReactorClient, Flow.Subscriber<Update> subscriber)LongPollingTelegramBot(String host, String token, Flow.Subscriber<Update> subscriber)LongPollingTelegramBot(String host, String token, ScheduledExecutorService executorService, Flow.Subscriber<Update> subscriber) -
Method Summary
-
Constructor Details
-
LongPollingTelegramBot
public LongPollingTelegramBot(TbdAsyncClient tbdTGReactorClient, Flow.Subscriber<Update> subscriber) -
LongPollingTelegramBot
public LongPollingTelegramBot(String host, String token, ScheduledExecutorService executorService, Flow.Subscriber<Update> subscriber) -
LongPollingTelegramBot
-
-
Method Details
-
subscribeToUpdate
public void subscribeToUpdate()- Specified by:
subscribeToUpdatein interfaceTelegramBot
-
getClient
- Specified by:
getClientin interfaceTelegramBot
-