How to get continuation token to pass in GetConversationsAsync?

断了今生、忘了曾经 提交于 2021-02-11 17:45:27

问题


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

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

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

回答1:


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.



来源:https://stackoverflow.com/questions/60933944/how-to-get-continuation-token-to-pass-in-getconversationsasync

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!