mx_typing: Send a typing notification

View source: R/messages.R

mx_typingR Documentation

Send a typing notification

Description

Shows (or clears) the session user's typing indicator in a room. Useful bot polish while a slow reply is being generated.

Usage

mx_typing(session, room_id, typing = TRUE, timeout = 30000L)

Arguments

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 typing = FALSE).

Value

Invisibly TRUE on success.

Examples

## Not run: 
mx_typing(s, "!abc:example", TRUE)
# ... generate the reply ...
mx_typing(s, "!abc:example", FALSE)

## End(Not run)

mx.api documentation built on Sept. 12, 2026, 1:07 a.m.