diff --git a/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageMailConvert.java b/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageMailConvert.java index 3d8ee25..35fe655 100644 --- a/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageMailConvert.java +++ b/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageMailConvert.java @@ -8,7 +8,7 @@ import dev.struchkov.godfather.telegram.domain.attachment.DocumentAttachment; import dev.struchkov.godfather.telegram.domain.attachment.LinkAttachment; import dev.struchkov.godfather.telegram.domain.attachment.Picture; import dev.struchkov.godfather.telegram.domain.attachment.PictureGroupAttachment; -import dev.struchkov.godfather.telegram.main.context.MessagePayload; +import dev.struchkov.godfather.telegram.main.context.MailPayload; import dev.struchkov.haiti.utils.Checker; import dev.struchkov.haiti.utils.Strings; import org.telegram.telegrambots.meta.api.objects.Chat; @@ -49,7 +49,7 @@ public final class MessageMailConvert { final Chat chat = message.getChat(); mail.setFirstName(chat.getFirstName()); mail.setLastName(chat.getLastName()); - mail.setPayload(MessagePayload.USERNAME, chat.getUserName()); + mail.setPayload(MailPayload.USERNAME, chat.getUserName()); convertDocument(message.getDocument()).ifPresent(mail::addAttachment); convertContact(message.getContact()).ifPresent(mail::addAttachment); diff --git a/telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/MessagePayload.java b/telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/MailPayload.java similarity index 81% rename from telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/MessagePayload.java rename to telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/MailPayload.java index 8cc2fcf..012b489 100644 --- a/telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/MessagePayload.java +++ b/telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/MailPayload.java @@ -3,11 +3,11 @@ package dev.struchkov.godfather.telegram.main.context; import dev.struchkov.godfather.main.domain.ContextKey; import dev.struchkov.haiti.utils.Exceptions; -public final class MessagePayload { +public final class MailPayload { public static final ContextKey USERNAME = ContextKey.of("KEY", String.class); - private MessagePayload() { + private MailPayload() { Exceptions.utilityClass(); }