Добавлен .pack() в ButtonsPayload для удобства

This commit is contained in:
Денис Семёнов 2025-07-19 17:01:42 +03:00
parent 37f7907398
commit 7b61ceaa58

View File

@ -83,6 +83,12 @@ class ButtonsPayload(BaseModel):
buttons: List[List[InlineButtonUnion]]
def pack(self):
return Attachment(
type=AttachmentType.INLINE_KEYBOARD,
payload=self
)
class Attachment(BaseModel):