| mx_typing | R Documentation |
Shows (or clears) the session user's typing indicator in a room. Useful bot polish while a slow reply is being generated.
mx_typing(session, room_id, typing = TRUE, timeout = 30000L)
session |
An "mx_session" object. |
room_id |
Character. The room ID. |
typing |
Logical. TRUE to show typing, FALSE to clear it. |
timeout |
Integer. How long the indicator lasts, in
milliseconds (ignored when |
Invisibly TRUE on success.
## Not run:
mx_typing(s, "!abc:example", TRUE)
# ... generate the reply ...
mx_typing(s, "!abc:example", FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.