最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Not able to disable previous adaptive card in teams for bot in .net - Stack Overflow

programmeradmin0浏览0评论

Hi I am not able to disable previous adaptive card of bot in teams.i am using core with bot echo framework.

I have tried to pass activity id to form activity and make attachment null to pass to updateactivityasync function.

    var activity = new Microsoft.Bot.Schema.Activity
    {
        Id = selectedCategoryPromptdisabled, // Set the ID of the activity to update
        Conversation = turnContext.Activity.Conversation, // Set the conversation
        ServiceUrl = (turnContext.Activity.ServiceUrl !=null)? turnContext.Activity.ServiceUrl:"", 
        Type = ActivityTypes.Message, 
        Text = "Updated category information", 
        Attachments = null 
    };


    turnContext.UpdateActivityAsync(activity, cancellationToken);
发布评论

评论列表(0)

  1. 暂无评论