如何获取延续令牌以传入 GetConversationsAsync?

How to get continuation token to pass in GetConversationsAsync?

我正在构建一个机器人服务以与 Microsoft Teams 集成。我是新手,所以我发现很难解决问题。

这是 C# 代码,字符串值是继续标记。

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

GetConversationsAsync 使用上次调用返回的 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

您也可以使用GetConversationReference传入GetConversationsAsync,您可以查看此链接

GetConversationReference

GitHub sample