如何获取延续令牌以传递到GetConversationsAsync? [英] How to get continuation token to pass in GetConversationsAsync?

查看:37
本文介绍了如何获取延续令牌以传递到GetConversationsAsync?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建与Microsoft Teams集成的机器人服务.我是新来的,所以我发现整理事情很困难.

I am building a bot service to integrate with Microsoft Teams. I am new so I found difficulties to sort things out.

这里是C#代码,字符串值是继续令牌.

Here is the C# code and the string value was the continue token.

var convo = ((BotFrameworkAdapter)turnContext.Adapter).GetConversationsAsync(turnContext, "", cancellationToken);

推荐答案

GetConversationsAsync 使用

GetConversationsAsync uses the Get Conversations API. This API must be called many times in sequence in order to retrieve all the conversations a bot has participated in. The continuation token is used to help each call continue where the last one left off. Therefore, the first call needs no continuation token. For each subsequent call, you should use the continuation token from the conversations result returned by the previous call.

这篇关于如何获取延续令牌以传递到GetConversationsAsync?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆