Actions116
- 💬 Chats Actions
- 👤 Contacts Actions
- 👥 Groups Actions
- Get Info Admin Only
- Set Messages Admin Only
- Get Messages Admin Only
- Get Invite Code
- Revoke Invite Code
- Get Participants
- Add Participants
- Remove Participants
- Promote To Admin
- Demote To Admin
- Create Group
- Get Groups
- Join Info Group
- Join Group
- Refresh Groups
- Get Group
- Delete Group
- Leave Group
- Get Chat Picture
- Set Picture
- Delete Picture
- Set Description
- Set Subject
- Set Info Admin Only
- 🖥️ Sessions Actions
- 🆔 Profile Actions
- 🖼️ Screenshot Actions
- 📤 Chatting Actions
- 📢 Channels Actions
- 🟢 Status Actions
- ✅ Presence Actions
- 🏷️ Labels Actions
- 🔍 Observability Actions
- 🔑 Auth Actions
Overview
This node operation retrieves chat messages from a specified chat session. It is useful for scenarios where you need to fetch historical or recent messages from a chat, such as monitoring conversations, analyzing chat data, or integrating chat content into other workflows. For example, you can use it to get the last 100 messages from a customer support chat session or to download media files attached to messages.
Use Case Examples
- Fetch the last 50 messages from a specific chat session for analysis.
- Download media files from chat messages in a given session for archival purposes.
Properties
| Name | Meaning |
|---|---|
| Session | The name of the chat session from which to retrieve messages. |
| Download Media | Whether to download media files attached to the messages. |
| Limit | The maximum number of messages to retrieve. |
| Offset | The number of messages to skip before starting to collect the result set. |
| Filter Timestamp Lte | Filter to include messages with timestamps less than or equal to this value. |
| Filter Timestamp Gte | Filter to include messages with timestamps greater than or equal to this value. |
| Filter From Me | Filter messages to include only those sent by the user if true; otherwise, include all messages. |
| Chat Id | The unique identifier of the chat from which to retrieve messages. |
Output
JSON
messages- ``
*id- Unique identifier of each message.
*timestamp- Timestamp when the message was sent.
*fromMe- Boolean indicating if the message was sent by the user.
*body- Content of the message.
*media- Media content attached to the message, if any.
- ``
Dependencies
- Requires API authentication credentials to access the chat service.
Troubleshooting
- Ensure the session name and chat ID are correct and exist in the chat service to avoid empty results or errors.
- If media download is enabled, verify that the node has sufficient permissions and network access to download media files.
- Timeout errors may occur if the limit is set too high or the network is slow; consider lowering the limit or increasing the timeout setting.