From 5a32399acc9b22f54dc46dc5cffdf347d3d0f850 Mon Sep 17 00:00:00 2001 From: Wayne Knight Date: Thu, 15 Oct 2020 13:09:47 +0100 Subject: [PATCH] Added attachments in the response model to support adaptive cards --- webexteamsbot/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webexteamsbot/models.py b/webexteamsbot/models.py index f5e636e..6f08c93 100644 --- a/webexteamsbot/models.py +++ b/webexteamsbot/models.py @@ -12,6 +12,7 @@ def __init__(self, attributes=None): self.attributes["markdown"] = None self.attributes["html"] = None self.attributes["files"] = list() + self.attributes["attachments"] = [] @property def text(self): @@ -52,6 +53,14 @@ def html(self): @html.setter def html(self, val): self.attributes["html"] = val + + @property + def attachments(self): + return self.attributes["attachments"] + + @attachments.setter + def attachments(self, val): + self.attributes["attachments"] = val def as_dict(self): ret = dict()