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