Actions34
- Chat Actions
- Contact Actions
- File Actions
- Group Actions
- Login Actions
- Message Actions
- User Actions
Chat → Send Chat Action
AI-generatedOverview
This node integrates with Telegram via the TelePilot API to perform various chat-related actions. Specifically, the 'Send Chat Action' operation allows users to send real-time chat status updates such as typing, recording voice notes, or uploading media to a specified chat. This is useful for creating interactive Telegram bots or automations that mimic human-like chat behaviors, enhancing user engagement and experience.
Use Case Examples
- Sending a 'typing' action to indicate the bot is composing a message.
- Sending an 'uploading photo' action while a photo is being prepared for sending.
- Canceling a previously sent chat action to stop showing the status.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the Telegram chat where the chat action will be sent. |
| Action | The type of chat action to send, such as typing, recording a voice note, uploading a document, photo, video, voice note, or canceling the current action. |
Output
JSON
success- Boolean indicating if the chat action was successfully sent.entity- The Telegram entity (chat) object representing the chat where the action was sent.
Dependencies
- Requires an API key credential for TelePilot API authentication.
- Depends on the TelePilotNodeConnectionManager to manage Telegram client sessions and API calls.
Troubleshooting
- Error 'Client not initialized. Please login first.' indicates the Telegram client session is not active. Resolve by logging in using the login operation.
- Errors related to session closure or unauthorized access suggest the session expired or was disconnected. Re-login is required.
- Invalid chat ID or unsupported entity type errors occur if the chat ID does not correspond to a valid Telegram chat or channel.
- Network or API errors may occur if the TelePilot API service is unreachable or credentials are invalid.
Links
- TelePilot Login Guide - Instructions on how to log in and authenticate with the TelePilot API.