fixed incorrect parameters in call to messages.markAsRead
This commit is contained in:
parent
09d7bd4fae
commit
87db7ddd98
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user