0
     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);

как победить проблему,чтобы выводилась не команда /data ,а следующее сообщение от пользователя.

2

0

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.

Посмотрите другие вопросы с метками или задайте свой вопрос.