View Source WeChat.Work.App.Chat (wechat v0.16.0)

群聊会话

Summary

Types

Functions

Link to this function

create(client, agent, user_list, opts \\ [])

View Source

创建群聊会话 - 官方文档

Link to this function

get(client, agent, chat_id)

View Source

获取群聊会话 - 官方文档

Link to this function

send(client, agent, chat_id, opts \\ [])

View Source

推送群聊消息 - 官方文档

Link to this function

send(client, agent, chat_id, msg_type, msg, opts \\ [])

View Source
Link to this function

send_file(client, agent, chat_id, media_id, opts \\ [])

View Source

发送文件消息 - 官方文档

Link to this function

send_image(client, agent, chat_id, media_id, opts \\ [])

View Source

发送图片消息 - 官方文档

Link to this function

send_markdown(client, agent, chat_id, content, opts \\ [])

View Source

发送markdown消息 - 官方文档

Link to this function

send_mpnews(client, agent, chat_id, msg, opts \\ [])

View Source

发送图文消息(mpnews) - 官方文档

Link to this function

send_news(client, agent, chat_id, msg, opts \\ [])

View Source

发送图文消息 - 官方文档

Link to this function

send_text(client, agent, chat_id, content, opts \\ [])

View Source

发送文本消息 - 官方文档

Link to this function

send_text_card(client, agent, chat_id, title, description, url, btn_txt, opts \\ [])

View Source
@spec send_text_card(
  WeChat.Work.client(),
  WeChat.Work.agent(),
  chat_id(),
  title :: String.t(),
  description :: String.t(),
  url :: String.t(),
  btn_txt :: String.t(),
  opts()
) :: WeChat.response()

发送文本卡片消息 - 官方文档

Link to this function

send_video(client, agent, chat_id, media_id, title, description, opts \\ [])

View Source
@spec send_video(
  WeChat.Work.client(),
  WeChat.Work.agent(),
  chat_id(),
  WeChat.Work.Material.media_id(),
  title :: String.t(),
  description :: String.t(),
  opts()
) :: WeChat.response()

发送视频消息 - 官方文档

Link to this function

send_voice(client, agent, chat_id, media_id, opts \\ [])

View Source

发送语音消息 - 官方文档

Link to this function

update(client, agent, chat_id, opts \\ [])

View Source

修改群聊会话 - 官方文档