如何获取延续令牌以传递到GetConversationsAsync? [英] How to get continuation token to pass in 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屋!