Skip to content

Commit

Permalink
chatbot: fix type conversion in header
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Jan 28, 2019
1 parent 3527a63 commit ebaa604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatbot/python/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ebaa604

Please sign in to comment.