WeChat.Comment (wechat v0.6.0)
图文消息留言管理
Link to this section Summary
Link to this section Types
Link to this type
comment_type()
Specs
comment_type() :: 0 | 1 | 2
评论类型
0
- 普通评论&精选评论1
- 普通评论2
- 精选评论
Link to this type
content()
Specs
content() :: String.t()
Link to this type
msg_data_id()
Specs
msg_data_id() :: integer()
Link to this type
user_comment_id()
Specs
user_comment_id() :: integer()
Link to this section Functions
Link to this function
add_reply(client, msg_data_id, user_comment_id, content, index \\ 0)
Specs
add_reply( WeChat.client(), msg_data_id(), user_comment_id(), content(), index :: integer() ) :: WeChat.response()
回复评论 - 官方文档
Link to this function
close(client, msg_data_id, index \\ 0)
Specs
close(WeChat.client(), msg_data_id(), index :: integer()) :: WeChat.response()
关闭已群发文章评论 - 官方文档
Link to this function
delete(client, msg_data_id, user_comment_id, index \\ 0)
Specs
delete(WeChat.client(), msg_data_id(), user_comment_id(), index :: integer()) :: WeChat.response()
删除评论 - 官方文档
Link to this function
delete_reply(client, msg_data_id, user_comment_id, index \\ 0)
Specs
delete_reply( WeChat.client(), msg_data_id(), user_comment_id(), index :: integer() ) :: WeChat.response()
删除回复 - 官方文档
Link to this function
list(client, msg_data_id, begin, count, type, index \\ 0)
Specs
list( WeChat.client(), msg_data_id(), begin :: integer(), count :: integer(), comment_type(), index :: integer() ) :: WeChat.response()
查看指定文章的评论数据 - 官方文档
参数说明
参数 | 是否必须 | 类型 | 说明 |
---|---|---|---|
msg_data_id | 是 | Uint32 | 群发返回的msg_data_id |
index | 否 | Uint32 | 多图文时,用来指定第几篇图文,从0开始,不带默认返回该msg_data_id的第一篇图文 |
begin | 是 | Uint32 | 起始位置 |
count | 是 | Uint32 | 获取数目(>=50会被拒绝) |
type | 是 | Uint32 | type=0 普通评论&精选评论 type=1 普通评论 type=2 精选评论 |
Link to this function
mark_elect(client, msg_data_id, user_comment_id, index \\ 0)
Specs
mark_elect( WeChat.client(), msg_data_id(), user_comment_id(), index :: integer() ) :: WeChat.response()
将评论标记精选 - 官方文档
Link to this function
open(client, msg_data_id, index \\ 0)
Specs
open(WeChat.client(), msg_data_id(), index :: integer()) :: WeChat.response()
打开已群发文章评论 - 官方文档
Link to this function
unmark_elect(client, msg_data_id, user_comment_id, index \\ 0)
Specs
unmark_elect( WeChat.client(), msg_data_id(), user_comment_id(), index :: integer() ) :: WeChat.response()
将评论取消精选 - 官方文档