Board Thread:General Coding Help/@comment-34101888-20161019024858/@comment-2200849-20161019192714

You can get the id of the currently active private room through the property  property. This returns the integer id of the active private room, or the string "main" if main chat is in focus.