So I know this API is quite old and very undocumented, exactly the reason that I'm making a SO question, so I wanted to know how I can select a chat in Skype using the C# Skype Desktop API, I've done some looking around but most people seem to be using WinForms to make their app, mine's just a simple console application, code:
Skype Skype = new Skype();
Skype.Attach(5, true);
Skype.Chat.SendMessage("Hello ??");
Parser.Pause();
On runtime, I of course get an exception telling me I need to select a chat, but I'm not sure as to how I can do that, I've looked here but that didn't help me much.
Is there a way to reference a chat easily using a specific code? etc... Thanks!
I have constructed this snippet which should help you...
Instead of using an existing chat object, you can create new chat object with method
You can create a group chat with:
or create method to retrieve group by display name
and use it then like: