Class TimedSendLongPollingBot
- java.lang.Object
-
- org.telegram.telegrambots.meta.bots.AbsSender
-
- org.telegram.telegrambots.bots.DefaultAbsSender
-
- org.telegram.telegrambots.bots.TelegramLongPollingBot
-
- org.telegram.telegrambots.extensions.bots.timedbot.TimedSendLongPollingBot
-
- All Implemented Interfaces:
org.telegram.telegrambots.meta.generics.LongPollingBot
public abstract class TimedSendLongPollingBot extends TelegramLongPollingBot
Created by Daniil Nikanov aka JetCoder
-
-
Field Summary
-
Fields inherited from class org.telegram.telegrambots.bots.DefaultAbsSender
exe
-
-
Constructor Summary
Constructors Constructor Description TimedSendLongPollingBot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()voidsendTimed(Long chatId, Object messageRequest)SendMessage sendMessageRequest = new SendMessage(); sendMessageRequest.setChatId(chatId); sendMessageRequest.setParseMode("HTML"); sendMessageRequest.setText(text); sendMessageRequest.setReplyMarkup(replyMarkup); sendTimed(chatId, sendMessageRequest); // <-- Instead of sendMessage() API method-
Methods inherited from class org.telegram.telegrambots.bots.TelegramLongPollingBot
clearWebhook, 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, getBaseUrl, getBotToken, getOptions, sendApiMethod, sendApiMethodAsync
-
Methods inherited from class org.telegram.telegrambots.meta.bots.AbsSender
execute, executeAsync, getMe, getMeAsync, getWebhookInfo, getWebhookInfoAsync
-
-
-
-
Method Detail
-
finish
public void finish()
-
sendTimed
public void sendTimed(Long chatId, Object messageRequest)
SendMessage sendMessageRequest = new SendMessage(); sendMessageRequest.setChatId(chatId); sendMessageRequest.setParseMode("HTML"); sendMessageRequest.setText(text); sendMessageRequest.setReplyMarkup(replyMarkup); sendTimed(chatId, sendMessageRequest); // <-- Instead of sendMessage() API method
-
-