You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Currently from custom API I successfully initiating conversation using Bot in MS teams channels and sending Hero card into channel but after that I have to set conversation data like SetConversationData So How can I put that some data after sending Hero card
Code Example
publicasyncTask<HttpResponseMessage>PostCard(ClauseRequestclauseRequest){try{varchannelId="19:"+tempChannelId+"@thread.skype";varserviceUrl=ConfigurationManager.AppSettings["ServiceUrl"];varconnector=newConnectorClient(newUri(serviceUrl));varchannelData=newDictionary<string,string>();channelData["teamsChannelId"]=channelId;IMessageActivitynewMessage=Activity.CreateMessageActivity();newMessage.Type=ActivityTypes.Message;varattachment=GetHeroCard(clauseRequest);newMessage.Attachments.Add(attachment);ConversationParametersconversationParams=newConversationParameters(isGroup:true,bot:null,members:null,topicName:"Test Conversation",activity:(Activity)newMessage,channelData:channelData);MicrosoftAppCredentials.TrustServiceUrl(serviceUrl,DateTime.MaxValue);vartemp=awaitconnector.Conversations.CreateConversationAsync(conversationParams);/**//Afterthis,here I want to save some data into conversation**// As this is custom API I dont have Activity objectvarresponse= Request.CreateResponse(HttpStatusCode.OK);returnresponse;}catch(Exceptionex){throwex;}}
Expected Behavior
After initiating conversation by Bot I have to save some state data