Изменил обработку CallbackQueryConvert
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
332ba4f0f1
commit
a8d1c7b67c
@ -23,8 +23,8 @@ public class CallbackQueryConvert {
|
|||||||
mail.setText(callbackData);
|
mail.setText(callbackData);
|
||||||
mail.addAttachment(convertToButtonClick(callbackData, callbackQuery.getMessage().getMessageId()));
|
mail.addAttachment(convertToButtonClick(callbackData, callbackQuery.getMessage().getMessageId()));
|
||||||
|
|
||||||
final Long chatId = callbackQuery.getMessage().getChatId();
|
final Long chatId = callbackQuery.getFrom().getId();
|
||||||
mail.setFromPersonId(chatId != null ? chatId.toString() : null);
|
mail.setFromPersonId(chatId.toString());
|
||||||
|
|
||||||
final User user = callbackQuery.getFrom();
|
final User user = callbackQuery.getFrom();
|
||||||
mail.setFirstName(user.getFirstName());
|
mail.setFirstName(user.getFirstName());
|
||||||
|
Loading…
Reference in New Issue
Block a user