aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Halle <niklas@niklashalle.net>2020-08-26 12:09:21 +0200
committerNiklas Halle <niklas@niklashalle.net>2020-08-26 12:09:21 +0200
commit6a82d692200606a25054857739c71f54db812be9 (patch)
tree656b4f992b44f794ea66fde9427f19ea8f0be6ac
parenta653cf023c39e6e668f9b8136bff1d012ab4f5b9 (diff)
downloadn_frontend_signal-6a82d692200606a25054857739c71f54db812be9.tar.gz
n_frontend_signal-6a82d692200606a25054857739c71f54db812be9.zip
all extra is a reply list
-rwxr-xr-xmain.py4
1 files 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":