From 6a82d692200606a25054857739c71f54db812be9 Mon Sep 17 00:00:00 2001 From: Niklas Halle Date: Wed, 26 Aug 2020 12:09:21 +0200 Subject: all extra is a reply list --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index a113b61..ebb03aa 100755 --- a/main.py +++ b/main.py @@ -39,10 +39,10 @@ def handle_replies(replies): answer = reply['text'] for annotation in reply["annotations"]: a_type = annotation["type"] - a_extra = annotation["extra"] + a_extra = handle_replies(annotation["extra"]) if a_type == "command": - answer = f"/{answer}: {handle_replies(a_extra)}\n" + answer = f"/{answer}: {a_extra}\n" elif a_type == "link": answer = f"{a_extra} ({answer})" elif a_type == "bold": -- cgit v1.2.3-54-g00ecf