This commit is contained in:
Guy Van Sanden 2025-02-12 11:37:57 +01:00
parent 3bba7a51f3
commit 84394cb3b8

View File

@ -37,7 +37,8 @@ def sendmessage(target, message):
ws.close()
for chatitem in response['resp']['chatItems']:
status = chatitem['chatItem']['meta']['itemStatus']['sndProgress']
statusdict = chatitem['chatItem']['meta']['itemStatus']
status = statusdict['sndProgress']
smessage = chatitem['chatItem']['meta']['itemText']
print("Message '%s' sent over websocket to %s, status was %s" % (smessage, target, status))