diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 6aa979b..5a296cf 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -488,7 +488,7 @@ class Controller(object): def mark_as_read(self): for i in self.buffers: if hasattr(i, "reads") and len(i.reads) != 0: - response = self.session.vk.client.messages.markAsRead(peer_id=i.kwargs["user_id"]) + response = self.session.vk.client.messages.markAsRead(peer_id=i.kwargs["peer_id"]) i.clear_reads() i.reads = [] time.sleep(1)