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