Module: Wechat::Qy::Message
- Defined in:
- lib/wechat/qy/message.rb
Instance Method Summary collapse
-
#text_send(agent_id, content, data = {}) ⇒ Object
text_send(‘appid’, ‘hello’, touser: ‘User1|User2’).
Instance Method Details
#text_send(agent_id, content, data = {}) ⇒ Object
text_send(‘appid’, ‘hello’, touser: ‘User1|User2’)
5 6 7 8 9 10 11 12 13 |
# File 'lib/wechat/qy/message.rb', line 5 def text_send(agent_id, content, data = {}) params = { msgtype: :text, agentid: agent_id, safe: 0, text: { content: content } }.merge(data) post 'message/send', params end |