sendChatAction {telegram.bot} | R Documentation |
Send a chat action
Description
Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status).
Usage
sendChatAction(chat_id, action)
Arguments
chat_id |
Unique identifier for the target chat or username of the target channel. |
action |
Type of action to broadcast. Choose one, depending on what the user is about to receive:
|
Details
You can also use it's snake_case equivalent send_chat_action
.
Examples
## Not run:
bot <- Bot(token = bot_token("RTelegramBot"))
chat_id <- user_id("Me")
bot$sendChatAction(
chat_id = chat_id,
action = "typing"
)
## End(Not run)