Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with Bookmarked (and normal) chats with Skype4Py

As the title suggests, I cannot seem to find some chats when using Skype4Py.

I've run this code:

def get_bookmarked_chats():
for b in skype.BookmarkedChats:
    print b.Topic

which should loop through all my bookmarked/favorite chats and print the topic. However, I have about 8 bookmarked chats, and this prints 9, only 5 of which are currently bookmarked, and ignores the other 3, and prints 4 chats that are no longer bookmarked. I have rerun

skype = Skype4Py.Skype()
skype.FriendlyName = 'Extract_chat_history'
skype.Attach()
print("Successfully connected to Skype account '" + Skype4Py.Skype.User(skype).Handle + "'.")

with no issues, and other code to retrieve new messages for the chats (that are recognized) seems to work perfectly fine. I have the newest skype installed (Version 7.0.59.102 according to Help -> About Skype), and I have clicked the star to bookmark/unbookmark chats. I have also tried looping through skype.Chatsto try and find the chat I want to add bookmark with Skype4Py, but am unable to find the chat there either to do so.

If anyone knows how to solve this, please let me know! Thanks

like image 599
Matthew Avatar asked Dec 11 '25 11:12

Matthew


1 Answers

Skype stopped using P2P for Skype group chats mid-to-late 2014 and now defaults to cloud-based groups which the Skype API does not support.

To confirm that the groups that aren't appearing are cloud-based, try this chat command in those groups:

/get name

If the result starts with

19:

then it is indeed a cloud-based group.

The only way to get those cloud-based groups to appear in your application is to re-create them as P2P-based groups.

Issue the following command in any Skype chat in order to create a new P2P-based group.

/createmoderatedchat
like image 86
Snaacky Avatar answered Dec 14 '25 00:12

Snaacky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!