Sorry for the late reply, but if you have not yet selected an answer, the problem is still open.
I tried to assemble groups the same way with you, but unfortunately this does not work. I do not want if this is an API problem or simply because microsoft has dropped support for third-party APIs , some of its functions do not work.
I managed to do this by looking for chat rooms not for groups. It would also be much easier if you just marked (added to favorites) the chat (group) that you want to find.
Chat group = null; for ( Chat c : Skype.getAllBookmarkedChats() ){ group = c; }
I just have group chat in my favorites, so it's very easy to get! If you have more chats and need a more general way to find a specific one, there are also several ways to do this.
for (Chat c : Skype.getAllChats()){ c.getAllMembers(); c.getId(); c.getWindowTitle(); } group = c;
But that would be harder. The getId () method might look simpler, but I was not able to get it to work. I donβt know again if this was my problem or just an API, but everything I tried just simply didnβt work. And do not forget to print the results on the console to make yourself easier.
In the end, if you can get a group chat, it's really easy to send a message:
group.send("Hi chat! This is java!!");
EDIT
This api only works for p2p chats. If you want to create a p2p chat, you need to use the / createmoderatedchat command in any chat, and it will create a new empty p2p chat. Any other group will be automatically cloudy.
Also check this
SECOND EDIT
API is completely dead
Little jacod
source share