Commit 045ee489 authored by Torsten Grote's avatar Torsten Grote

Fix text/body API parameter

parent 9753a32b
......@@ -62,7 +62,7 @@ def get_message_stdin(token):
def print_message(message):
prefix = '>' if message['local'] else '<'
time = get_timestamp(datetime.fromtimestamp(message['timestamp'] / 1000))
print(f"{time} {prefix} {message['body']}")
print(f"{time} {prefix} {message['text']}")
def get_timestamp(date):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment