protected override async Task PostAsync(IActivity item, bool state, CancellationToken token) { var message = item.AsMessageActivity(); var response = await GetLoginAsync(message); await BotToUser.PostAsync(response, token); }
protected override async Task PostAsync(IActivity item, bool state, CancellationToken token) { if (item is Activity activity) { var message = BotToUser.MakeMessage(); message.Text = "Restarting the experience!"; await BotToUser.PostAsync(message, token); task.Reset(); } }