godfather ver 0.0.54
This commit is contained in:
parent
6f45154878
commit
0cec0e651b
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user