Forum Discussion
DVTitov
Nov 27, 2021Copper Contributor
Send personal messages to Teams from daemon service.
Hello, I need to send notifications to my colleagues using Teams in case of emergency which is detected by monitoring system. These messages must be sent on behalf of background service which cannot ...
- Dec 08, 2021
DVTitov - We got a confirmation from engineering team that
"To post as a background service, the user must use a bot."
So currently we do not have any way to send the direct message to user using Graph API.Thanks,
Chetan Sharma
----------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
DVTitov
Dec 08, 2021Copper Contributor
Hi!
Example for Go behind that link is outdated, but anyway I cannot use chat API in applications only context.
My application gets Auth token using application secret obtained at Azure. I don't have any user logged in so I can't get Authorization Code.
Hence when I call chat API I get an error: "Chat API not allowed in application only context" (or similar).
Example for Go behind that link is outdated, but anyway I cannot use chat API in applications only context.
My application gets Auth token using application secret obtained at Azure. I don't have any user logged in so I can't get Authorization Code.
Hence when I call chat API I get an error: "Chat API not allowed in application only context" (or similar).
ChetanSharma-msft
Microsoft
Dec 08, 2021DVTitov - We got a confirmation from engineering team that
"To post as a background service, the user must use a bot."
So currently we do not have any way to send the direct message to user using Graph API.
Thanks,
Chetan Sharma
----------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- jitendra182Feb 27, 2024Copper ContributorCan you let me know, if this features is now available or not?