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, stoppublic 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 TelegramBotprotected void onStop()
onStop in class TelegramBotprotected void onMessage(Message message)
TelegramBotonMessage in class TelegramBotmessage - The newly arrived Message