Class TelegramLongPollingSessionBot
- java.lang.Object
-
- org.telegram.telegrambots.meta.bots.AbsSender
-
- org.telegram.telegrambots.bots.DefaultAbsSender
-
- org.telegram.telegrambots.bots.TelegramLongPollingBot
-
- org.telegram.telegrambots.session.TelegramLongPollingSessionBot
-
- All Implemented Interfaces:
org.telegram.telegrambots.meta.generics.LongPollingBot
public abstract class TelegramLongPollingSessionBot extends TelegramLongPollingBot
-
-
Field Summary
-
Fields inherited from class org.telegram.telegrambots.bots.DefaultAbsSender
exe
-
-
Constructor Summary
Constructors Constructor Description TelegramLongPollingSessionBot()TelegramLongPollingSessionBot(ChatIdConverter chatIdConverter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Optional<org.apache.shiro.session.Session>getSession(org.telegram.telegrambots.meta.api.objects.Message message)voidonUpdateReceived(org.telegram.telegrambots.meta.api.objects.Update update)abstract voidonUpdateReceived(org.telegram.telegrambots.meta.api.objects.Update update, Optional<org.apache.shiro.session.Session> botSession)voidsetChatIdConverter(ChatIdConverter chatIdConverter)voidsetSessionManager(org.apache.shiro.session.mgt.DefaultSessionManager sessionManager)-
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, execute, getBaseUrl, getBotToken, getOptions, sendApiMethod, sendApiMethodAsync
-
Methods inherited from class org.telegram.telegrambots.meta.bots.AbsSender
execute, executeAsync, getMe, getMeAsync, getWebhookInfo, getWebhookInfoAsync
-
-
-
-
Constructor Detail
-
TelegramLongPollingSessionBot
public TelegramLongPollingSessionBot()
-
TelegramLongPollingSessionBot
public TelegramLongPollingSessionBot(ChatIdConverter chatIdConverter)
-
-
Method Detail
-
setSessionManager
public void setSessionManager(org.apache.shiro.session.mgt.DefaultSessionManager sessionManager)
-
setChatIdConverter
public void setChatIdConverter(ChatIdConverter chatIdConverter)
-
onUpdateReceived
public void onUpdateReceived(org.telegram.telegrambots.meta.api.objects.Update update)
-
getSession
public Optional<org.apache.shiro.session.Session> getSession(org.telegram.telegrambots.meta.api.objects.Message message)
-
onUpdateReceived
public abstract void onUpdateReceived(org.telegram.telegrambots.meta.api.objects.Update update, Optional<org.apache.shiro.session.Session> botSession)
-
-