Изменил обработку CallbackQueryConvert
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2023-05-03 18:42:43 +03:00
parent 332ba4f0f1
commit a8d1c7b67c
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -23,8 +23,8 @@ public class CallbackQueryConvert {
mail.setText(callbackData);
mail.addAttachment(convertToButtonClick(callbackData, callbackQuery.getMessage().getMessageId()));
final Long chatId = callbackQuery.getMessage().getChatId();
mail.setFromPersonId(chatId != null ? chatId.toString() : null);
final Long chatId = callbackQuery.getFrom().getId();
mail.setFromPersonId(chatId.toString());
final User user = callbackQuery.getFrom();
mail.setFirstName(user.getFirstName());