Добавил возможность отвечать на сообщения
This commit is contained in:
parent
e00f683226
commit
6936e252f4
2
pom.xml
2
pom.xml
@ -38,7 +38,7 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
|
||||
<godfather.core.ver>0.0.64</godfather.core.ver>
|
||||
<godfather.core.ver>0.0.65</godfather.core.ver>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/org.telegram/telegrambots -->
|
||||
<telegrambots.ver>6.5.0</telegrambots.ver>
|
||||
|
@ -332,6 +332,10 @@ public class TelegramSender implements TelegramSending {
|
||||
final SendMessage sendMessage = new SendMessage();
|
||||
sendMessage.setChatId(boxAnswer.getRecipientPersonId());
|
||||
sendMessage.setText(subMessage);
|
||||
|
||||
if (checkNotBlank(boxAnswer.getReplyToMessageId())) {
|
||||
sendMessage.setReplyToMessageId(Integer.parseInt(boxAnswer.getReplyToMessageId()));
|
||||
}
|
||||
if (lastMessage) {
|
||||
sendMessage.setReplyMarkup(convertKeyBoard(boxAnswer.getKeyBoard()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user