markIsComposing method
Implementation
Future markIsComposing({required String phone, int timeout = 5000}) async {
await wpClient.evaluateJs(
'''WPP.chat.markIsComposing(${phone.phoneParse});''',
methodName: "markIsComposing",
);
// 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",
);
}