samczsun / Skype4J

Skype API written in Java. Does not support P2P chats
Apache License 2.0
145 stars 48 forks source link

Group chat #149

Closed eehhaa closed 3 years ago

eehhaa commented 7 years ago

How can I send and check for messages inside of group chats? I am currently using Message.sendMessage(e.getChat, "Message"); how can I make it send to groups as right now it only works in private chat.

gw2princeps commented 7 years ago

Check if your chat is a instanceof GroupChat. Then it should work

eehhaa commented 7 years ago

Still doesn't work instead it says that I have to specify a group chat and can't do e.getChat();

gw2princeps commented 7 years ago

check out my implementation https://github.com/SpatiumPrinceps/PrincepsLib/blob/master/src/main/java/biz/princeps/lib/broadcasting/PSkype.java just ignore the bukkit stuff, its just for running interaction with Skype on another thread. not sure if it helps you...