diff --git a/maxapi/types/attachments/attachment.py b/maxapi/types/attachments/attachment.py index 7012915..fb1901a 100644 --- a/maxapi/types/attachments/attachment.py +++ b/maxapi/types/attachments/attachment.py @@ -82,6 +82,12 @@ class ButtonsPayload(BaseModel): """ buttons: List[List[InlineButtonUnion]] + + def pack(self): + return Attachment( + type=AttachmentType.INLINE_KEYBOARD, + payload=self + ) class Attachment(BaseModel):