feat: Add profile editing mode case in Telegram bot service
This commit is contained in:
@@ -7,6 +7,7 @@ import ru.cathub.telegabot.exception.ServiceException;
|
||||
import ru.cathub.telegabot.model.BotUser;
|
||||
import ru.cathub.telegabot.repository.UserRepository;
|
||||
import ru.cathub.telegabot.service.BookManageService;
|
||||
import ru.cathub.telegabot.service.ProfileService;
|
||||
import ru.cathub.telegabot.service.TelegramBotService;
|
||||
import ru.cathub.telegabot.service.TelegramClientService;
|
||||
|
||||
@@ -24,6 +25,9 @@ public class TelegramBotServiceImpl implements TelegramBotService {
|
||||
@Override
|
||||
public void processInput(BotUser botUser, String text) throws ServiceException {
|
||||
switch (text) {
|
||||
case EDIT_PROFILE:
|
||||
profileService.enterProfileEditingMode(botUser);
|
||||
break;
|
||||
// case "Отправить текст ИИ":
|
||||
// sendMessage(chatId, "Введите ваш текст:");
|
||||
// break;
|
||||
|
||||
Reference in New Issue
Block a user