mirror of
https://github.com/valitydev/alert-tg-bot.git
synced 2024-11-06 01:55:23 +00:00
Del reply prefix message (#28)
This commit is contained in:
parent
e70501ae2d
commit
85f4320852
@ -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());
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user