markIsRecording method
Implementation
Future markIsRecording({required String phone, int timeout = 5000}) async {
await wpClient.evaluateJs(
'''WPP.chat.markIsRecording(${phone.phoneParse});''',
methodName: "markIsRecording",
);
// Wait for the timeout period.
await Future.delayed(Duration(milliseconds: timeout));
// Mark the chat as paused.
await wpClient.evaluateJs(
'''WPP.chat.markIsPaused(${phone.phoneParse});''',
methodName: "markIsPaused",
);
}