Package org.telegram.telegrambots.bots
Class TelegramLongPollingBot
- java.lang.Object
-
- org.telegram.telegrambots.meta.bots.AbsSender
-
- org.telegram.telegrambots.bots.DefaultAbsSender
-
- org.telegram.telegrambots.bots.TelegramLongPollingBot
-
- All Implemented Interfaces:
LongPollingBot
,TelegramBot
public abstract class TelegramLongPollingBot extends DefaultAbsSender implements LongPollingBot
- Version:
- 1.0 Base abstract class for a bot that will get updates using long-polling method
- Author:
- Ruben Bermudez
-
-
Field Summary
-
Fields inherited from class org.telegram.telegrambots.bots.DefaultAbsSender
exe
-
-
Constructor Summary
Constructors Constructor Description TelegramLongPollingBot()
TelegramLongPollingBot(DefaultBotOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearWebhook()
void
onClosing()
-
Methods inherited from class org.telegram.telegrambots.bots.DefaultAbsSender
downloadFile, downloadFile, downloadFile, downloadFile, downloadFileAsStream, downloadFileAsStream, downloadFileAsync, downloadFileAsync, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, getBaseUrl, getBotToken, getOptions, sendApiMethod, sendApiMethodAsync, sendApiMethodAsync
-
Methods inherited from class org.telegram.telegrambots.meta.bots.AbsSender
execute, executeAsync, executeAsync, getMe, getMeAsync, getMeAsync, getWebhookInfo, getWebhookInfoAsync, getWebhookInfoAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.telegram.telegrambots.meta.generics.LongPollingBot
getOptions, onUpdateReceived, onUpdatesReceived
-
Methods inherited from interface org.telegram.telegrambots.meta.generics.TelegramBot
getBotToken, getBotUsername, onRegister
-
-
-
-
Constructor Detail
-
TelegramLongPollingBot
public TelegramLongPollingBot()
-
TelegramLongPollingBot
public TelegramLongPollingBot(DefaultBotOptions options)
-
-
Method Detail
-
clearWebhook
public void clearWebhook() throws TelegramApiRequestException
- Specified by:
clearWebhook
in interfaceLongPollingBot
- Throws:
TelegramApiRequestException
-
onClosing
public void onClosing()
- Specified by:
onClosing
in interfaceLongPollingBot
-
-