I'm currently trying to figure out how I should be able to send messages to a group chat that the bot exist in. I have the conversation id (as I can save it when the bot joins) but I can't figure out how I should get the actual group name (as I want to be able to map name and conversation id).
If I check on the turn context on any of the event trigger (OnMembersAdded
, OnMessageActivity
, etc) it have a couple of name properties but they are always null (but isGroup
is true so it at least have that right).
Then I thought I maybe could go through the connector client but it doesn't have any available methods for this at all. The closest I found was GetConversationsWithHttpMessagesAsync
but it don't contain any useful information.
var connectorClient = new ConnectorClient(
new Uri(serviceUrl),
new MicrosoftAppCredentials(
_accessConfiguration.MicrosoftAppId,
_accessConfiguration.MicrosoftAppPassword,
_accessConfiguration.MicrosoftAppTenantId,
null))
connectorClient.Conversations.GetConversationsWithHttpMessagesAsync() // This one doesn't contain any extra info about the conversation
So my question is, have anyone managed to get this group chat name and how did you do it?