Добавил в ButtonClickAttachment messageId
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
24173d7e55
commit
891a19024d
@ -39,6 +39,7 @@ public class CallbackQueryConvert {
|
||||
private static ButtonClickAttachment convertToButtonClick(String callbackData, MaybeInaccessibleMessage maybeInaccessibleMessage) {
|
||||
final ButtonClickAttachment buttonClickAttachment = new ButtonClickAttachment();
|
||||
buttonClickAttachment.setRawCallBackData(callbackData);
|
||||
buttonClickAttachment.setMessageId(maybeInaccessibleMessage.getMessageId().toString());
|
||||
if (maybeInaccessibleMessage instanceof Message message) {
|
||||
buttonClickAttachment.setMaybeInaccessibleMessage(MessageMailConvert.apply(message));
|
||||
}
|
||||
|
@ -18,8 +18,9 @@ import static dev.struchkov.haiti.utils.Inspector.isNotNull;
|
||||
@Setter
|
||||
public class ButtonClickAttachment extends Attachment {
|
||||
|
||||
private String rawCallBackData;
|
||||
private String messageId;
|
||||
private Mail maybeInaccessibleMessage;
|
||||
private String rawCallBackData;
|
||||
|
||||
private Map<String, ButtonArg> args = new HashMap<>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user