diff --git a/pom.xml b/pom.xml index 22abf98..e659ed3 100644 --- a/pom.xml +++ b/pom.xml @@ -37,7 +37,7 @@ 5.4.0.1 3.9.0 - 1.6.8 + 1.6.12 3.2.1 3.3.1 3.0.1 @@ -79,19 +79,11 @@ org.sonatype.plugins nexus-staging-maven-plugin ${plugin.nexus.staging.ver} - true ossrh https://s01.oss.sonatype.org/ true - - - com.thoughtworks.xstream - xstream - ${xstream.ver} - - org.apache.maven.plugins diff --git a/telegram-core/src/main/java/dev/struchkov/godfather/telegram/convert/MessageMailConvert.java b/telegram-core/src/main/java/dev/struchkov/godfather/telegram/convert/MessageMailConvert.java index cce7661..0580d05 100644 --- a/telegram-core/src/main/java/dev/struchkov/godfather/telegram/convert/MessageMailConvert.java +++ b/telegram-core/src/main/java/dev/struchkov/godfather/telegram/convert/MessageMailConvert.java @@ -29,6 +29,8 @@ public class MessageMailConvert { mail.setAddDate(LocalDateTime.now()); mail.setText(message.getText()); mail.setCreateDate(LocalDateTime.ofInstant(Instant.ofEpochSecond(message.getDate()), ZoneId.systemDefault())); + mail.setFirstName(message.getChat().getFirstName()); + mail.setLastName(message.getChat().getLastName()); List entities = message.getEntities(); if (entities != null) { mail.setAttachments(convertAttachments(entities));