From 2e1be48087f960b5b504027aef3c2b79e68f8b97 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Fri, 8 Apr 2022 20:31:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B8=D0=BC=D1=8F=20=D0=B8=20=D1=84=D0=B0=D0=BC=D0=B8=D0=BB?= =?UTF-8?q?=D0=B8=D1=8E=20=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D1=8F=20=D0=B2=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 10 +--------- .../godfather/telegram/convert/MessageMailConvert.java | 2 ++ 2 files changed, 3 insertions(+), 9 deletions(-) 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));