godfather ver 0.0.54

This commit is contained in:
Struchkov Mark 2023-03-20 17:11:45 +03:00
parent 6f45154878
commit 0cec0e651b
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<godfather.core.ver>0.0.54-SNAPSHOT</godfather.core.ver>
<godfather.core.ver>0.0.54</godfather.core.ver>
<!-- https://mvnrepository.com/artifact/org.telegram/telegrambots -->
<telegrambots.ver>6.3.0</telegrambots.ver>

View File

@ -50,7 +50,7 @@ public final class MessageChatMailConvert {
final User fromUser = message.getFrom();
mail.setFirstName(fromUser.getFirstName());
mail.setLastName(fromUser.getLastName());
mail.setPayload(MailPayload.USERNAME, fromUser.getUserName());
mail.addPayload(MailPayload.USERNAME, fromUser.getUserName());
mail.setFromPersonId(fromUser.getId().toString());
convertDocument(message.getDocument()).ifPresent(mail::addAttachment);

View File

@ -50,7 +50,7 @@ public final class MessageMailConvert {
final Chat chat = message.getChat();
mail.setFirstName(chat.getFirstName());
mail.setLastName(chat.getLastName());
mail.setPayload(MailPayload.USERNAME, chat.getUserName());
mail.addPayload(MailPayload.USERNAME, chat.getUserName());
convertDocument(message.getDocument()).ifPresent(mail::addAttachment);
convertContact(message.getContact()).ifPresent(mail::addAttachment);