To find the unique ID of a bot in a specific chat, you can use the Microsoft Graph API.
- Get the conversation ID of the chat where the bot is added. You can retrieve the conversation ID by making a GET request to
/v3/conversations/{conversationId}
.
The conversation ID uniquely identifies the chat. - Once you have the conversation ID, you can use the Microsoft Graph API to get the list of members in the conversation.
Make a GET request to/v1.0/chats/{chatId}/members
to retrieve the list of members in the chat. - Iterate through the list of members and find the member with the
userType
set to "bot". Theid
property of this member will be the unique ID of the bot in the chat.
Once you have the unique bot ID, you can use it as the recipient in the Activity
object when sending a message to the bot from Postman or any other client.
Thanks,
Prasad Das
*************************************************************************
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link.