Does Skype4py still work after Microsoft removed Skype Desktop API? -


does skype4py use skype desktop api? api appears have been (or being) removed microsoft1.

does know how affects skype4py project?


1 "what desktop api?" on skype faq says:

as communicated in blog post, due technology improvements making skype experience, features of api stop working skype desktop. example, delivery of chat messages using api cease work.

skype4py still work, but, when sending message group chat, attention necessary.

if group chat "cloud-based chats", skype4py not work well.

for reference: skype faq - chat commands , roles?

for example, following scripts work normally:

# -*- coding: utf-8 -*- import skype4py  user = 'username' # allow chats skype4py bot account  skype = skype4py.skype(transport='x11') skype.attach()  chat = skype.createchatwith(user) chat.sendmessage('hello!') 

and following scripts work too:

# -*- coding: utf-8 -*- import skype4py  # p2p-based chat , skype4py bot account had joined group group = '#botname/$username;1234567890abcdef'  skype = skype4py.skype(transport='x11') skype.attach()  chat in skype.chats :     if chat.name == group :         chat.sendmessage('hello!') 

but, following scripts don't work :

# -*- coding: utf-8 -*- import skype4py  # cloud-based chat , skype4py bot account had joined group group = '19:1234567890abcdef1234567890abcdef@thread.skype'  skype = skype4py.skype(transport='x11') skype.attach()  chat in skype.chats :     if chat.name == group :         chat.sendmessage('hello!') 

the reasons follow.

  • skype4py cannot handle cloud-based chats well.

in evidence, following scripts shows p2p-based chats. if skpe4py joined cloud-based chats.

# -*- coding: utf-8 -*- import skype4py  skype = skype4py.skype(transport='x11') skype.attach() chat in skype.chats :     print chat  # sample output: # <skype4py.chat.chat name='#username/$1234567890abcdef'> # <skype4py.chat.chat name='#botname/$username;1234567890abcdef'> 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -