可以通过以下方法找到私信或私信im.history
and converstation.history
.
如何查找话题消息?我想找到线程消息并删除它们。
查找话题消息
您需要使用conversations.history https://api.slack.com/methods/conversations.history方法来检索线程的父消息。
然后是conversations.replies https://api.slack.com/methods/conversations.replies方法来检索线程,包括父消息的所有线程消息。
您可以通过查看来检测父消息ts
and thread_ts
特性:
当消息具有 thread_ts 值并且它matches同一条消息的
ts,消息是线程父级。
更多信息请查看官方文档:在野外查找消息线程 https://api.slack.com/docs/message-threading#finding_message_threads_in_the_wild
删除话题消息
您可以使用与普通消息相同的方式删除线程消息chat.delete https://api.slack.com/methods/chat.delete method.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)