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

群聊会话

Summary

Types

chat_id()

@type chat_id() :: String.t()

opts()

@type opts() :: Enumerable.t()

Functions

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

创建群聊会话 - 官方文档

get(client, agent, chat_id)

获取群聊会话 - 官方文档

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

推送群聊消息 - 官方文档

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

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

发送文件消息 - 官方文档

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

发送图片消息 - 官方文档

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

发送markdown消息 - 官方文档

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

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

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

发送图文消息 - 官方文档

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

发送文本消息 - 官方文档

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

@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()

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

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

@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()

发送视频消息 - 官方文档

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

发送语音消息 - 官方文档

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

修改群聊会话 - 官方文档