|
@@ -143,15 +143,14 @@ class GroupMeBot(rollbot.Rollbot[GroupMeMessage]):
|
|
|
)
|
|
|
else:
|
|
|
attachments.append({"type": "image", "url": att.body})
|
|
|
- # TODO re-enable replies
|
|
|
- # if att.name == "reply":
|
|
|
- # if att.body is None or not isinstance(att.body, str):
|
|
|
- # raise ValueError("Invalid reply body type, must be message ID")
|
|
|
- # attachments.append({
|
|
|
- # "type": "reply",
|
|
|
- # "base_reply_id": att.body,
|
|
|
- # "reply_id": att.body,
|
|
|
- # })
|
|
|
+ if att.name == "reply":
|
|
|
+ if att.body is None or not isinstance(att.body, str):
|
|
|
+ raise ValueError("Invalid reply body type, must be message ID")
|
|
|
+ attachments.append({
|
|
|
+ "type": "reply",
|
|
|
+ "base_reply_id": att.body,
|
|
|
+ "reply_id": att.body,
|
|
|
+ })
|
|
|
|
|
|
except:
|
|
|
self.context.debugging = "".join(traceback.format_exc())
|