How can I send a message to a specific channel?

2021-06-30T10:03:41.91+00:00

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"
}
}
}

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,452 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,814 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    2021-07-01T16:25:01.7+00:00

    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.

    0 comments No comments

  2. 2021-07-07T10:16:47.157+00:00
    0 comments No comments