From ebaa604752abf00d3b887e9d7df5a349b10107f1 Mon Sep 17 00:00:00 2001 From: or-else Date: Mon, 28 Jan 2019 16:20:39 +0300 Subject: [PATCH] chatbot: fix type conversion in header --- chatbot/python/chatbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatbot/python/chatbot.py b/chatbot/python/chatbot.py index e86e9d4cc..19592e798 100644 --- a/chatbot/python/chatbot.py +++ b/chatbot/python/chatbot.py @@ -159,7 +159,7 @@ def leave(topic): def publish(topic, text): tid = next_id() return pb.ClientMsg(pub=pb.ClientPub(id=tid, topic=topic, no_echo=True, - head={"auto": True}, content=json.dumps(text).encode('utf-8'))) + head={"auto": json.dumps(True).encode('utf-8')}, content=json.dumps(text).encode('utf-8'))) def note_read(topic, seq): return pb.ClientMsg(note=pb.ClientNote(topic=topic, what=pb.READ, seq_id=seq))