コード例 #1
0
        private static async Task SendWelcomeMessageAsync(ITurnContext turnContext, CancellationToken cancellationToken)
        {
            foreach (var member in turnContext.Activity.MembersAdded)
            {
                if (member.Id != turnContext.Activity.Recipient.Id)
                {
                    var view = new MainResponses();
                    await view.ReplyWith(turnContext, MainResponses.Intro);

                    //await turnContext.SendActivityAsync(
                    //    $"",
                    //    cancellationToken: cancellationToken);
                }
            }
        }