Del reply prefix message (#28)

This commit is contained in:
malkoas 2023-09-06 14:14:46 +03:00 committed by GitHub
parent e70501ae2d
commit 85f4320852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -32,8 +32,7 @@ public class ForceReplyHandler implements CommonHandler<SendMessage> {
public SendMessage handle(Update update, long userId) throws TException {
return createParamsRequestMapper.createRequest(
userId,
update.getMessage().getReplyToMessage().getText()
.substring(TextConstants.ENTER_PARAM_TO_REPLY.getText().length()),
update.getMessage().getReplyToMessage().getText(),
update.getMessage().getText());
}
}

View File

@ -37,7 +37,7 @@ public class ParamKeyboardBuilder {
message.setText(SELECT_PARAM_FROM_LIST.getText() + paramNameForSelect);
} else {
message.setReplyMarkup(new ForceReplyKeyboard());
message.setText(ENTER_PARAM_TO_REPLY.getText() + paramNameForReply);
message.setText(paramNameForReply);
}
return message;
}

View File

@ -74,7 +74,7 @@ public abstract class TestObjectFactory {
Chat chat = new Chat();
chat.setId(123L);
Message message = new Message();
message.setText("Введите в ответе параметр: Процент");
message.setText("Процент");
message.setReplyToMessage(message);
message.setChat(chat);
message.setFrom(user);