Skip to content

Commit

Permalink
Adds broadcast toogle to chat.postmessage
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkors committed Mar 19, 2023
1 parent 1f619d5 commit 75bda82
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class ChatPostMessageRequest
public Attachment[] attachments { get; set; }

public IBlock[] Blocks { get; set; }
public bool? Reply_Broadcast { get; set; }
}

public class Attachment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ public async Task PostWorks()
var response = await SlackClient.ChatPostMessage(msg);
Assert.True(response.Ok);
}

[Fact]
public async Task PostWithBroadCastWorks()
{
var msg = new ChatPostMessageRequest
{
Channel = "CTECR3J6M",
thread_ts = "1679186947.684479",
Text = "BROADCAST!",
Reply_Broadcast = true
};
var response = await SlackClient.ChatPostMessage(msg);
Assert.True(response.Ok);
}

[Theory]
[InlineData(true)]
Expand Down

0 comments on commit 75bda82

Please sign in to comment.