fixed incorrect parameters in call to messages.markAsRead

This commit is contained in:
Manuel Cortez 2019-01-10 13:00:48 -06:00
parent 09d7bd4fae
commit 87db7ddd98

View File

@ -488,7 +488,7 @@ class Controller(object):
def mark_as_read(self): def mark_as_read(self):
for i in self.buffers: for i in self.buffers:
if hasattr(i, "reads") and len(i.reads) != 0: 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.clear_reads()
i.reads = [] i.reads = []
time.sleep(1) time.sleep(1)