GetChannelMessages
Task to retrieve recent messages from a Slack channel, with optional parameters for pagination and thread inclusion.
Last updated
Was this helpful?
Task to retrieve recent messages from a Slack channel, with optional parameters for pagination and thread inclusion.
Task version: 1.0.0
Required Frends version: 5.7+
Required .NET version: 8.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.Slack/tree/main/Frends.Slack.GetChannelMessages
ChannelId : String
Channel ID where the message exists
Default: -
Example: C12345678
Limit : Nullable<Int32>
Maximum number of messages to retrieve
Default: -
Example: 100
Latest : String
Fetch messages before this timestamp (used for pagination)
Default: -
Example: 1623878400.000200
Oldest : String
Fetch messages after this timestamp (used for pagination)
Default: -
Example: 1623792000.000100
Token : String
Slack OAuth token used for authentication.
If the token is a bot token (starts with "xoxb"), messages
will be updated as the Slack app's bot user.
If the token is a user token (starts with "xoxp"), messages
will be updated as the Slack user who authorized the token.
The token owner must be the original message poster
or have appropriate permissions to edit the message.
Note: User tokens require the user to have authorized the app via OAuth
with appropriate scopes (e.g., "chat:write").
Default: -
Example: xoxb-123456789
IncludeThreads : Boolean
Whether to include thread replies
Default: False
Example: false
ThrowErrorOnFailure : Boolean
Whether to throw an error on failure.
Default: True
Example: false
ErrorMessageOnFailure : String
Overrides the error message on failure.
Default: -
Example: Custom error message
Success : Boolean
Indicates if the task completed successfully.
Example: true
Messages : List<Message>
List of messages retrieved from the channel
HasMore : Boolean
Whether more messages are available for pagination
Example: true
Error : Error
Error that occurred during task execution.
Example: object { string Message, object { Exception Exception } AdditionalInfo }
Changelog for Task Frends.Slack.GetChannelMessages.
Improved error handling
Marked token as a password property
Initial implementation
Last updated
Was this helpful?
Was this helpful?

