在数据库上保存对话奖励

发布于 2025-01-27 00:30:07 字数 147 浏览 3 评论 0 原文

我正在创建一个团队机器人来发送主动消息,我应该在数据库中保存 ConvertyReference ,但我的问题是如何?

我应该保存整个物体还是仅保存一些礼节?

我正在将Postgres用于数据库,并且正在Java中构建机器人。

I'm creating a Teams bot to send proactive messages and I should save the ConversationReference on the database but my question is how?

Should I save the whole object or just some proprieties?

I'm using Postgres for the database and I'm build the bot in Java.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

那小子欠揍 2025-02-03 00:30:07

You actually don't need the entire ConversationReference. There are a few ways to implement Proactive Messaging, and the most simple requires only a conversation Id and a Service Url. Please see this other answer I posted a few months ago, where I reference some sample code and a video from a talk I gave, which both go into more detail. The samples I link to there are in node and C#, so not Java directly, but you should be able to get a good start between those two.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文