Return the current active chat
The currenct active chat or undefined for none
// Get active chatconst chat = WPP.chat.getActiveChat();WPP.chat.sendTextMessage(chat.id, 'Hi'); Copy
// Get active chatconst chat = WPP.chat.getActiveChat();WPP.chat.sendTextMessage(chat.id, 'Hi');
Return the current active chat