public TelegramLongPollingSessionBot(ChatIdConverter chatIdConverter){ this.setSessionManager(new DefaultSessionManager()); this.setChatIdConverter(chatIdConverter); AbstractSessionDAO sessionDAO = (AbstractSessionDAO) sessionManager.getSessionDAO(); sessionDAO.setSessionIdGenerator(chatIdConverter); }