Help - Search - Members - Calendar
Full Version: ActiveS: Changing Chat Topic
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
TesterBoy
I'm trying to change the CHat Topic using the ActiveS wrapper, but always get error 503:

CHAT: Invalid or unknown action

I'm trying this:

Chat chat = [get a chat from somewhere];
chat.Topic = "some topic or other";

Has anybody been able to do this? Can you show me some code? smile.png

Or should I just switch immediately to Skype4COM?

(and I know this isn't the best place for this, but there doesn't seem to be much activity over at ActiveS site...)

Thanks,
Andrew
holybible
Hi, TesterBoy

In ActiveS, Chat.Topic is read-only property so it seems you can't change the topic directly, you should do it by using AccessClass.SendCommand(cmd) or AccessClass.SendBlockingCommand(cmd) where cmd is a string like this:
alter chat <chat_id> settopic <topic>

I have tested it and it works, try it by urself. smile.png
TesterBoy
QUOTE(holybible @ Fri Sep 15 2006, 03:31) [snapback]297831[/snapback]

Hi, TesterBoy

In ActiveS, Chat.Topic is read-only property


Yes - I saw that in the docs, but the metadata showed that there's a get{} implemented anyway, so I assumed the docs were wrong smile.png

QUOTE
you should do it by using AccessClass.SendCommand(cmd) or AccessClass.SendBlockingCommand(cmd) where cmd is a string like this:
alter chat <chat_id> settopic <topic>

I have tested it and it works, try it by urself. smile.png


I have, and you're right - it works.

Thanks for the help!

Andrew
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.