Добавлен .pack() в ButtonsPayload для удобства
This commit is contained in:
parent
37f7907398
commit
7b61ceaa58
@ -82,6 +82,12 @@ class ButtonsPayload(BaseModel):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
buttons: List[List[InlineButtonUnion]]
|
buttons: List[List[InlineButtonUnion]]
|
||||||
|
|
||||||
|
def pack(self):
|
||||||
|
return Attachment(
|
||||||
|
type=AttachmentType.INLINE_KEYBOARD,
|
||||||
|
payload=self
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class Attachment(BaseModel):
|
class Attachment(BaseModel):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user