From 95f018fad3b5a9fa2312f1eaecc9a16cb70e78a2 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Mon, 19 Mar 2018 21:40:51 +0100 Subject: [PATCH] Fixed example `Echobot` --- examples/echobot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/echobot.py b/examples/echobot.py index a89b2f9..1d93407 100644 --- a/examples/echobot.py +++ b/examples/echobot.py @@ -5,8 +5,8 @@ from fbchat import log, Client # Subclass fbchat.Client and override required methods class EchoBot(Client): def onMessage(self, author_id, message_object, thread_id, thread_type, **kwargs): - self.markAsDelivered(author_id, thread_id) - self.markAsRead(author_id) + self.markAsDelivered(thread_id, message_object.uid) + self.markAsRead(thread_id) log.info("{} from {} in {}".format(message_object, thread_id, thread_type.name))