Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 WebChat DirectLine 将我的 Bot 集成到 xamarine 应用程序中,但我不知道我是否可以在用户输入任何新内容之前加载存储到数据库中的旧对话。另外我怎样才能从直线获取用户ID。
我不知道您的数据库结构,但如果您保存所有消息的对话 ID 和日期时间,您可以轻松地按时间顺序选择最后 x 条消息。
至于您的用户 ID,您必须自己生成并保存在 Xamarin 应用程序中。这是机器人期望从通道或连接器获得的值。