sendChatAction | R Documentation |
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).
sendChatAction(chat_id, action)
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:
|
You can also use it's snake_case equivalent send_chat_action
.
## Not run: bot <- Bot(token = bot_token("RTelegramBot")) chat_id <- user_id("Me") bot$sendChatAction( chat_id = chat_id, action = "typing" ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.