//This will send an adhoc message to the user public static async Task Resume(string conversationId, string channelId) { var userAccount = new ChannelAccount(toId, toName); var botAccount = new ChannelAccount(fromId, fromName); var connector = new ConnectorClient(new Uri(serviceUrl)); IMessageActivity message = Activity.CreateMessageActivity(); if (!string.IsNullOrEmpty(conversationId) && !string.IsNullOrEmpty(channelId)) { message.ChannelId = channelId; } else { conversationId = (await connector.Conversations.CreateDirectConversationAsync(botAccount, userAccount)).Id; } message.From = botAccount; message.Recipient = userAccount; message.Conversation = new ConversationAccount(id: conversationId); message.Locale = "en-Us"; message.Text = "Driver Arrived Notification"; await RideReservation.GenerateAdaptiveCardNotificationMessage(message, reservation); await connector.Conversations.SendToConversationAsync((Activity)message); }