Skype4J
Skype4J copied to clipboard
Cannot send message
I connect as a guest, and the chat is created like this:
Chat chat = skype.getOrLoadChat("19:[email protected]");
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.