Skip to content

Conversation

zimeg
Copy link
Member

@zimeg zimeg commented Oct 14, 2025

This PR adds support for the following methods for #1516:

Category

  • slack-api-client (Slack API Clients)
  • slack-api-model (Slack API Data Models)

Reviewers

The following code sample can be used as a working concept:

var result = client.chatStartStream(r -> r
        .token(token)
        .channel(channel)
        .threadTs(ts)
        .recipientUserId(userId)
        .recipientTeamId(teamId));
client.chatAppendStream(r -> r
        .token(token)
        .channel(channel)
        .ts(result.getTs())
        .markdownText("**h"));
client.chatAppendStream(r -> r
        .token(token)
        .channel(channel)
        .ts(result.getTs())
        .markdownText("ello!**"));
client.chatStopStream(r -> r
        .token(token)
        .channel(channel)
        .ts(result.getTs())
        .blocksAsString("[{\"type\":\"context_actions\",\"elements\":[{\"type\":\"feedback_buttons\",\"action_id\":\"feedback\",\"positive_button\":{\"text\":{\"type\":\"plain_text\",\"text\":\"Good Response\" ,\"emoji\":true},\"accessibility_label\":\"Submit positive feedback on this response\",\"value\":\"good-feedback\"},\"negative_button\":{\"text\":{\"type\":\"plain_text\",\"text\":\"Bad Response\",\"emoji\":true},\"accessibility_label\":\"Submit negative feedback on this response\",\"value\":\"bad-feedback\"}}]}]"));

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.

@zimeg zimeg added this to the 1.45.5 milestone Oct 14, 2025
@zimeg zimeg self-assigned this Oct 14, 2025
@zimeg zimeg added enhancement M-T: A feature request for new functionality project:slack-api-client project:slack-api-client project:slack-api-model project:slack-api-model labels Oct 14, 2025
@zimeg zimeg linked an issue Oct 14, 2025 that may be closed by this pull request
Copy link

codecov bot commented Oct 15, 2025

Codecov Report

❌ Patch coverage is 85.71429% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.04%. Comparing base (d1f005c) to head (86a0142).

Files with missing lines Patch % Lines
...java/com/slack/api/methods/RequestFormBuilder.java 76.66% 4 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1518   +/-   ##
=========================================
  Coverage     73.03%   73.04%           
- Complexity     4381     4398   +17     
=========================================
  Files           475      475           
  Lines         14222    14266   +44     
  Branches       1447     1452    +5     
=========================================
+ Hits          10387    10420   +33     
- Misses         2976     2987   +11     
  Partials        859      859           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@WilliamBergamin WilliamBergamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality project:slack-api-client project:slack-api-client project:slack-api-model project:slack-api-model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add support for chat.*Stream API methods

2 participants