taksan / skype-java-api

Skype API for Java, based on Skype4Java library
128 stars 60 forks source link

Documentation #76

Open byAdam opened 8 years ago

byAdam commented 8 years ago

Is there any documentation for this? I have been searching for a while and I cant find anything

taksan commented 8 years ago

Sorry, but no. What I have are several samples, that can be found here:

https://github.com/taksan/skype-api-samples

byAdam commented 8 years ago

Thanks for the reply. From the samples, I can't see anything relating to sending/reading messages in group chats, Either P2P or Cloud-based? Is this possible with API?

Cuniq commented 8 years ago

Cloud-based chats are not working (or they work at random times without a specific reason ) with this api. You can only with p2p chats or group p2p chats ( moderated chats ). For sending and receiving messages generally you need to you a ChatMessageListener and override the methods

  1. chatMessageReceived(ChatMessage rec)
  2. chatMessageSent(ChatMessage sent)

If you like you can check my bot it may be what you looking for to use or take code.

taksan commented 8 years ago

To complement @Cuniq information:

If you start a chat with a newer windows or mac client, you won't be able to use this api to send messages to that chat.

If you start with an older client (for example, with a linux client), you can send messages to the chat using the regular send message api (the same that you'd use to send messages to user). To do that, the easiest way is to name the chat and use this name instead of the user name in the api methods that require the user name.

imWillX commented 8 years ago

Hello Taksan,

First of all, thank you for the API. Will this, by any chance, work with cloud based chats in the future?

Regards, Will

taksan commented 7 years ago

@imWillX It's not likely that this API will ever work with cloud chats. This is due to microsoft deprecating the desktop api.