public class ChatContextTelegramBot extends TelegramBot
Constructor and Description |
---|
ChatContextTelegramBot(String botToken,
AbstractChatContextFactory chatContextFactory) |
ChatContextTelegramBot(String botToken,
AbstractChatContextFactory chatContextFactory,
boolean sendAsync) |
Modifier and Type | Method and Description |
---|---|
void |
add(ChatContext context) |
void |
addAll(List<? extends ChatContext> contextList) |
protected void |
onMessage(Message message)
This method is called when a new message has arrived.
|
protected void |
onStart() |
protected void |
onStop() |
forwardMessage, getMe, getUserProfilePhotos, getUserProfilePhotos, notifyNewMessages, provideExecutorService, replyTo, sendAudio, sendAudio, sendAudio, sendAudio, sendChatAction, sendDocument, sendDocument, sendDocument, sendDocument, sendLocation, sendLocation, sendMessage, sendMessage, sendPhoto, sendPhoto, sendPhoto, sendPhoto, sendSticker, sendSticker, sendSticker, sendSticker, sendVideo, sendVideo, sendVideo, sendVideo, sendVoice, sendVoice, sendVoice, sendVoice, start, stop
public ChatContextTelegramBot(String botToken, AbstractChatContextFactory chatContextFactory)
public ChatContextTelegramBot(String botToken, AbstractChatContextFactory chatContextFactory, boolean sendAsync)
public void add(ChatContext context)
public void addAll(List<? extends ChatContext> contextList)
protected void onStart()
onStart
in class TelegramBot
protected void onStop()
onStop
in class TelegramBot
protected void onMessage(Message message)
TelegramBot
onMessage
in class TelegramBot
message
- The newly arrived Message