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