Forum Discussion
use graphAPI to send message by application
lobbs - Could you please confirm the below asks?
- Please let us know in which step you are seeing the error.
- Please confirm if you are using Application permissions or Delegated permissions?
- lobbsAug 12, 2022Copper Contributor
- Please let us know in which step you are seeing the error.
->When I execute my code to call the send message API
- Please confirm if you are using Application permissions or Delegated permissions?
->Yes,I am using the application permissions
By the way , as I confirmed with the other guys, they said the send channel message API only could be used by content import mode..so which means it is not supportted for normal use .
- Meghana-MSFTAug 12, 2022Microsoft
lobbs - We tried https://docs.microsoft.com/en-us/microsoftteams/platform/graph-api/import-messages/import-external-messages-to-teams#request-post-message-that-is-text-only example and our API call was successful.
Please check this document Send chatMessage in a channel or a chat - Microsoft Graph v1.0 | Microsoft Docs, if you want to send messages to a normal channel.
Could you please confirm what do you mean by client-credentials-provider?