Jul 18 2024 11:18 AM
Hi!
Id like to receive some help.
I want to know it its possible to send a message to a chat gruop. The object its to code a python script which among other things it sends a message to a concrect group on teams (just a chat group, not a channel). I've all permissions required but until now i've not accomplished what i want to.
If what i want its possible, do i have to authenticate everytime i run the code or there's some way to auto-authenticate?
I've tried using this guide https://learn.microsoft.com/es-es/graph/api/chatmessage-get?view=graph-rest-1.0&tabs=python
but could not to get nothing.
If someone could help me with any code example i'll be gratefull
Jul 18 2024 11:18 PM
@lastramarcelo94 - Could you please let us know what exactly you want to achiever here? We are not quite clear about the ask here.
If you want to send message to a particular group chat, you can use below API:
Send message in a chat - Microsoft Graph v1.0 | Microsoft Learn
This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
Choose a Microsoft Graph authentication provider - Microsoft Graph | Microsoft Learn
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
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.