Sk.chats is not getting all the chats like sk.contacts does
Closed this issue · 2 comments
HassanAbbas7357 commented
As i do with sk.contacts to get all the contacts
For contact in sk.contacts:
Contact.id
I can't itterate over sk.chats to get all the conversations ( chats , groups )
For chat in sk.chats:
chat #is not returning anything i want to get all the chats and groups and itterate through all of them so i can delete the all sent messages from groups and chats
Terrance commented
Iterating SkypeChats
will only give you what's in the cache; you need to use recent()
.
HassanAbbas7357 commented
Thanks that solved my problem thank you so much
…On Fri, Jan 29, 2021, 6:19 PM Terrance ***@***.***> wrote:
Iterating SkypeChats
<https://skpy.t.allofti.me/api.html#skpy.chat.SkypeChats> will only give
you what's in the cache; you need to use recent()
<https://skpy.t.allofti.me/api.html#skpy.chat.SkypeChats.recent>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#167 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL2GTS7LAYDLWCKMXZAMELDS4KYXLANCNFSM4WYZMVKA>
.