Private/Get-MessageReplies.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
function Get-MessageReplies { Param ( [Parameter(Mandatory)] [string]$ChannelID, [Parameter(Mandatory)] [string]$ts, [Parameter(Mandatory)] [string]$latest ) $FormData = [ordered]@{ channel = $ChannelID ts = $ts inclusive = $true limit = 28 latest = $latest token = '' # This property is filled by Invoke-ApiRequest _x_reason = 'history-api/fetchReplies' } Invoke-ApiRequest -FormData $FormData -Method 'conversations.replies' } |