diff options
author | Niklas Halle <niklas@niklashalle.net> | 2020-08-26 12:09:21 +0200 |
---|---|---|
committer | Niklas Halle <niklas@niklashalle.net> | 2020-08-26 12:09:21 +0200 |
commit | 6a82d692200606a25054857739c71f54db812be9 (patch) | |
tree | 656b4f992b44f794ea66fde9427f19ea8f0be6ac | |
parent | a653cf023c39e6e668f9b8136bff1d012ab4f5b9 (diff) | |
download | n_frontend_signal-6a82d692200606a25054857739c71f54db812be9.tar.gz n_frontend_signal-6a82d692200606a25054857739c71f54db812be9.zip |
all extra is a reply list
-rwxr-xr-x | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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": |