ex_wechat v0.1.7 Wechat.Message
Wechat Message.
Summary
Functions
Passive Message, react to user. Just need to generate the xml message, don’t need to send to wechat server
Send custom message to a special openid. If user don’t react with your wechat in 24 hours, you cann’t send this kind of message to user. message_params
Mass Message. Mass message should send to wechat server
Template Message, should send to wechat server
Functions
Passive Message, react to user. Just need to generate the xml message, don’t need to send to wechat server.
send_custom(module \\ Wechat, openid, message_params)
send_custom(module, binary, map) :: map | term
Send custom message to a special openid. If user don’t react with your wechat in 24 hours, you cann’t send this kind of message to user. message_params:
%{ voice: %{media_id: "id"} }
%{ text: %{content: "content"} }
%{ image: %{media_id: "id"} }
Mass Message. Mass message should send to wechat server.