samczsun / Skype4J

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

Cannot send message #146

Open JoaquinSiabra opened 7 years ago

JoaquinSiabra commented 7 years ago

I connect as a guest, and the chat is created like this:

Chat chat = skype.getOrLoadChat("19:42abed183a95456ea1de9e2f7356163c@thread.skype");

But when I try to send a message:

chat.sendMessage(Message.create().with(Text.plain("Hello. This will be ")).with(Text.rich("bold").withBold()));

I get "Exception in thread "main" java.lang.IllegalArgumentException: User must not be null".

How can I add a user to a chat?

Thanks in advance.