Saturday, 15 August 2020

Send proactive messages to bot user on-demand Bot V4

var attachments = new List();
attachments.Add(GetInlineAttachment());
var activity = new Activity { Type = ActivityTypes.Message, Recipient = new ChannelAccount("vikash.ranjan.jha@xyz.com"), Conversation = new ConversationAccount(false, "personal", convId), Text = "Test", Attachments = attachments }; MicrosoftAppCredentials.TrustServiceUrl("https://smba.trafficmanager.net/amer/"); ResourceResponse ttt = connector1.Conversations.SendToConversationAsync(convId, activity).Result;


Get the code from GitHub SendImageToBotUsers
For more such information visit http://cloudo.in/send-proactive-messages-to-bot-user-on-demand-bot-v4/

No comments:

Post a Comment

What is AI?