Actions26
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
The node acts as a Telegram client interface, enabling users to interact with Telegram chats programmatically. Specifically, the Send Chat Action operation allows sending various chat status actions (like typing, recording voice note, uploading media) to a specified chat. This is useful for bots or automation workflows that want to simulate user activity indicators in Telegram chats, enhancing interactivity and user experience.
Practical examples include:
- Indicating "typing" status while preparing a message.
- Showing "uploading photo" when sending images.
- Displaying "recording voice note" during audio message preparation.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the Telegram chat where the action will be sent. |
| Action | The type of chat action to send. Options include: |
| - Cancel | |
| - Recording Voice Note | |
| - Typing | |
| - Uploading Document | |
| - Uploading Photo | |
| - Uploading Video | |
| - Uploading Voice Note |
Output
The output is a JSON array containing the response from the Telegram API after sending the chat action. The structure typically includes confirmation or status details about the action performed on the chat.
No binary data output is produced by this operation.
Dependencies
- Requires an active Telegram API authentication credential (an API key and associated login).
- Depends on the TelePilot Node Connection Manager to manage Telegram client sessions.
- Requires proper login/authentication to Telegram via phone number and code before operations can be executed.
- Network access to Telegram servers is necessary.
Troubleshooting
Common issues:
- Attempting to send chat actions without being logged in will result in errors prompting re-login.
- Session expiration or closure requires re-authentication.
- Invalid or missing Chat ID will cause failures in sending actions.
Error messages:
"Session was closed or terminated. Please login again": Indicates the Telegram session is no longer valid; re-login is required."Please login": The node detected unauthorized access; ensure credentials are correct and login flow completed."A closed client cannot be reused, create a new Client": Internal session management error; triggers re-login.
Resolutions:
- Follow the login instructions at https://telepilot.co/login-howto to authenticate.
- Use the
/startcommand in the connected ChatTrigger node to initiate login. - Ensure the Chat ID is correctly provided and corresponds to an existing chat.
Links and References
- TelePilot Login Guide
- Telegram Bot API documentation (for general understanding of chat actions): https://core.telegram.org/bots/api#sendchataction