Class TimedSendLongPollingBot

  • All Implemented Interfaces:
    org.telegram.telegrambots.meta.generics.LongPollingBot

    public abstract class TimedSendLongPollingBot
    extends TelegramLongPollingBot
    Created by Daniil Nikanov aka JetCoder
    • Constructor Detail

      • TimedSendLongPollingBot

        public TimedSendLongPollingBot()
    • 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