if (update.getMessage().getText().equals("/data")) { SendMessage message = new SendMessage() .setChatId(chat_id) .setText("Введите дату "); try { execute(message); } catch (TelegramApiException e) { e.printStackTrace(); }message.setText("Введите год"); try { execute(message); } catch (TelegramApiException e) { e.printStackTrace(); } String date=update.getMessage().getText(); System.out.println(date); how to defeat the problem, so that the following message from the user is displayed not with the / data command.