View Source WeChat.Work.App.Chat (wechat v0.16.0)
群聊会话
Summary
Types
@type chat_id() :: String.t()
@type opts() :: Enumerable.t()
Functions
@spec create( WeChat.Work.client(), WeChat.Work.agent(), WeChat.Work.Contacts.User.userid_list(), opts() ) :: WeChat.response()
创建群聊会话 - 官方文档
@spec get(WeChat.Work.client(), WeChat.Work.agent(), chat_id()) :: WeChat.response()
获取群聊会话 - 官方文档
@spec send(WeChat.Work.client(), WeChat.Work.agent(), chat_id(), opts()) :: WeChat.response()
推送群聊消息 - 官方文档
@spec send_file( WeChat.Work.client(), WeChat.Work.agent(), chat_id(), WeChat.Work.Material.media_id(), opts() ) :: WeChat.response()
发送文件消息 - 官方文档
@spec send_image( WeChat.Work.client(), WeChat.Work.agent(), chat_id(), WeChat.Work.Material.media_id(), opts() ) :: WeChat.response()
发送图片消息 - 官方文档
@spec send_markdown( WeChat.Work.client(), WeChat.Work.agent(), chat_id(), WeChat.Work.Message.content(), opts() ) :: WeChat.response()
发送markdown消息 - 官方文档
@spec send_mpnews( WeChat.Work.client(), WeChat.Work.agent(), chat_id(), WeChat.Work.Message.msg(), opts() ) :: WeChat.response()
发送图文消息(mpnews) - 官方文档
@spec send_news( WeChat.Work.client(), WeChat.Work.agent(), chat_id(), WeChat.Work.Message.msg(), opts() ) :: WeChat.response()
发送图文消息 - 官方文档
@spec send_text( WeChat.Work.client(), WeChat.Work.agent(), chat_id(), WeChat.Work.Message.content(), opts() ) :: WeChat.response()
发送文本消息 - 官方文档
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()
发送视频消息 - 官方文档
@spec send_voice( WeChat.Work.client(), WeChat.Work.agent(), chat_id(), WeChat.Work.Material.media_id(), opts() ) :: WeChat.response()
发送语音消息 - 官方文档
@spec update(WeChat.Work.client(), WeChat.Work.agent(), chat_id(), opts()) :: WeChat.response()
修改群聊会话 - 官方文档