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
- 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
ConstructorsConstructorDescriptionDeprecated.Overwriting the getBotToken() method is deprecated.TelegramLongPollingBot(String botToken) TelegramLongPollingBot(DefaultBotOptions options) Deprecated.Overwriting the getBotToken() method is deprecated.TelegramLongPollingBot(DefaultBotOptions options, String botToken) -
Method Summary
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, sendApiMethodAsyncMethods inherited from class org.telegram.telegrambots.meta.bots.AbsSender
execute, executeAsync, executeAsync, getMe, getMeAsync, getMeAsync, getWebhookInfo, getWebhookInfoAsync, getWebhookInfoAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.telegram.telegrambots.meta.generics.LongPollingBot
getOptions, onUpdateReceived, onUpdatesReceivedMethods inherited from interface org.telegram.telegrambots.meta.generics.TelegramBot
getBotToken, getBotUsername, onRegister
-
Constructor Details
-
TelegramLongPollingBot
Deprecated.Overwriting the getBotToken() method is deprecated. Use the constructor insteadIf this is used getBotToken has to be overridden in order to return the bot token! -
TelegramLongPollingBot
Deprecated.Overwriting the getBotToken() method is deprecated. Use the constructor insteadIf this is used getBotToken has to be overridden in order to return the bot token! -
TelegramLongPollingBot
-
TelegramLongPollingBot
-
-
Method Details
-
clearWebhook
- Specified by:
clearWebhookin interfaceLongPollingBot- Throws:
TelegramApiRequestException
-
onClosing
public void onClosing()- Specified by:
onClosingin interfaceLongPollingBot
-