From 7b61ceaa58c1672179d5f87dda4277662c58a825 Mon Sep 17 00:00:00 2001 From: Denis Date: Sat, 19 Jul 2025 17:01:42 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20.pack()=20=D0=B2=20ButtonsPayload=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D1=83=D0=B4=D0=BE=D0=B1=D1=81=D1=82=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maxapi/types/attachments/attachment.py | 6 ++++++ 1 file changed, 6 insertions(+) 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):