Добавлен .pack() в ButtonsPayload для удобства
This commit is contained in:
parent
37f7907398
commit
7b61ceaa58
@ -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):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user