module Wechat::Qy::Message

Public Instance Methods

text_send(agent_id, content, data = {}) click to toggle source

text_send('appid', 'hello', touser: 'User1|User2')

# 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