Skip to content

Commit c03cd74

Browse files
committed
feat: add support for sendTyping conv method
1 parent 98101db commit c03cd74

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

package-lock.json

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/structures/UserConversation.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ class UserConversation extends BaseConversation {
3131
return Number(timestamp);
3232
}
3333

34+
/**
35+
* Send typing message to trigger a typing indicator for the recipient. Indicator will be shown for 15seconds unless a typing STOP message is sent first.
36+
* @param {boolean} [stop] - if true stops typing
37+
*/
38+
async sendTyping(stop = false) {
39+
await this.client._busInterface.sendTyping(this.id, stop);
40+
}
41+
3442
/**
3543
* Reset the session keys for the conversation.
3644
* This method should rarely need to be used.

0 commit comments

Comments
 (0)