Actions24
- Chat Actions
- Callback Actions
- File Actions
- Message Actions
Overview
This node sends a chat action to a specified Telegram chat. Chat actions are status indicators that show the user what the bot is doing, such as typing, uploading a photo, recording audio, etc. This is useful for improving user experience by providing real-time feedback about the bot's activity in the chat. For example, before sending a photo, the bot can show the "upload_photo" action to indicate the upload process.
Use Case Examples
- A bot that sends a 'typing' action before sending a text message to simulate natural conversation.
- A bot that shows 'upload_photo' action while uploading an image to a chat.
- A bot that indicates 'record_audio' when preparing to send a voice message.
Properties
| Name | Meaning |
|---|---|
| Chat ID | Unique identifier for the target chat or username where the chat action will be sent. |
| Action | Type of chat action to broadcast, such as typing, uploading photo, recording video, etc. This indicates what the user is about to receive. |
Output
JSON
json- The JSON response from the Telegram API after sending the chat action.
Dependencies
- Telegram API credentials (API key)
Troubleshooting
- Ensure the Chat ID is correct and the bot has permission to send actions to the chat.
- The action type must be one of the predefined options; otherwise, the API call will fail.
- If the bot is not responding, check the Telegram API credentials and network connectivity.
Links
- Telegram Bot API - sendChatAction - Official Telegram API documentation for sending chat actions.