Send Chat Action
Send a chat action to a Telegram chat to indicate what the bot is doing.
The Send Telegram Chat Action action allows you to broadcast a chat action to a specified Telegram chat. This is used to indicate that your bot is performing an action, such as typing
, uploading a photo
, or recording a video
.
This action is useful for improving the user experience of your bot by providing feedback to the user about what the bot is doing.
Configuration
Chat ID
string
The unique identifier for the target chat, or the username of the target channel (e.g., @channelusername
).
Action
string
The type of action to broadcast. Choose from: typing
, upload_photo
, record_video
, upload_video
, record_voice
, upload_voice
, upload_document
, choose_sticker
, find_location
, record_video_note
, or upload_video_note
.
Input
chat_id
(string
): The target chat's identifier.action
(string
): The action to broadcast.
Output
success
(boolean
): Indicates whether the chat action was sent successfully.error
(string
, optional): An error message, if the action was not sent successfully.
Example
In this example, the action sends a typing
action to the Telegram channel @mychannel
before sending a message. This lets the user know that the bot is preparing a response.
Last updated
Was this helpful?