Back to Whatsapp Web Js

whatsapp

docs/InterfaceController.html

1.34.72.5 KB
Original Source

Methods

checkFeatureStatus(feature)closeRightDrawer()disableFeatures(features)enableFeatures(features)

getFeatures()openChatDrawer(chatId)openChatSearch(chatId)openChatWindow(chatId)

openChatWindowAt(msgId)openMessageDrawer(msgId)

new InterfaceController()

Methods

async

checkFeatureStatus(feature)

Check if Feature is enabled

Parameter

NameTypeOptionalDescription

feature

|

string

|

|

status to check

|

async

closeRightDrawer()

Closes the Right Drawer

async

disableFeatures(features)

Disable Features

Parameter

NameTypeOptionalDescription

features

|

Array of string

|

|

to be disabled

|

async

enableFeatures(features)

Enable Features

Parameter

NameTypeOptionalDescription

features

|

Array of string

|

|

to be enabled

|

async

getFeatures()

Get all Features

async

openChatDrawer(chatId)

Opens the Chat Drawer

Parameter

NameTypeOptionalDescription

chatId

|

string

|

|

ID of the chat drawer that will be opened

|

async

openChatSearch(chatId)

Opens the Chat Search

Parameter

NameTypeOptionalDescription

chatId

|

string

|

|

ID of the chat search that will be opened

|

async

openChatWindow(chatId)

Opens the Chat Window

Parameter

NameTypeOptionalDescription

chatId

|

string

|

|

ID of the chat window that will be opened

|

async

openChatWindowAt(msgId)

Opens or Scrolls the Chat Window to the position of the message

Parameter

NameTypeOptionalDescription

msgId

|

string

|

|

ID of the message that will be scrolled to

|

async

openMessageDrawer(msgId)

Opens the Message Drawer

Parameter

NameTypeOptionalDescription

msgId

|

string

|

|

ID of the message drawer that will be opened

|