chatType
stores the type of the current chat
string chatType;
Values
"user"
private chat
"chat"
group chat
Example
const state = $$("ch").getState();
if(state.chatType === "user") {
// do smth
}
Details
The property is read-only and can be accessed via the state object of the app.
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.