question

AlexanderBaumgartnerbudoland-2283 avatar image
0 Votes"
AlexanderBaumgartnerbudoland-2283 asked HunaidHanfee-MSFT commented

How can I send a message to a specific channel?

array(1) {
["error"]=>
array(3) {
["code"]=>
string(12) "Unauthorized"
["message"]=>
string(12) "Unauthorized"
["innerError"]=>
array(3) {
["date"]=>
string(19) "2021-06-30T09:58:22"
["request-id"]=>
string(36) "6f7eae28-fefe-43a5-a5cf-51f6eb396ae9"
["client-request-id"]=>
string(36) "6f7eae28-fefe-43a5-a5cf-51f6eb396ae9"
}
}
}

office-teams-app-devmicrosoft-graph-teamwork
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,
Can you please describe your issue in details?

If you are trying to do it with graph. You can use Send chatMessage in channel only.
I see that you are already aware about the API. So, are you trying to do this from Graph Explorer?

Thanks


0 Votes 0 ·

Hello,
Please let us know if you are still facing this issue. We are closing this at our end.

Thanks

0 Votes 0 ·
Deva-MSFT avatar image
0 Votes"
Deva-MSFT answered

Try the above API call in delegated permission scenario which will work. If you try with application permission scenario, then it's not supported. Here's the documentation for it.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AlexanderBaumgartnerbudoland-2283 avatar image
0 Votes"
AlexanderBaumgartnerbudoland-2283 answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.