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))