File tree Expand file tree Collapse file tree
src/Slackbot.Net.SlackClients.Http/Models/Requests/ChatPostMessage
test/Slackbot.Net.SlackClients.Http.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public class ChatPostMessageRequest
1717 public Attachment [ ] attachments { get ; set ; }
1818
1919 public IBlock [ ] Blocks { get ; set ; }
20+ public bool ? Reply_Broadcast { get ; set ; }
2021}
2122
2223public class Attachment
Original file line number Diff line number Diff line change @@ -32,6 +32,20 @@ public async Task PostWorks()
3232 var response = await SlackClient . ChatPostMessage ( msg ) ;
3333 Assert . True ( response . Ok ) ;
3434 }
35+
36+ [ Fact ]
37+ public async Task PostWithBroadCastWorks ( )
38+ {
39+ var msg = new ChatPostMessageRequest
40+ {
41+ Channel = "CTECR3J6M" ,
42+ thread_ts = "1679186947.684479" ,
43+ Text = "BROADCAST!" ,
44+ Reply_Broadcast = true
45+ } ;
46+ var response = await SlackClient . ChatPostMessage ( msg ) ;
47+ Assert . True ( response . Ok ) ;
48+ }
3549
3650 [ Theory ]
3751 [ InlineData ( true ) ]
You can’t perform that action at this time.
0 commit comments