Sha256: 2df4a019525795247fbc1dd3e8cc5f6a2f478fd280ee1793f3bd70faa9793d7d

Contents?: true

Size: 370 Bytes

Versions: 7

Compression:

Stored size: 370 Bytes

Contents

module Wechat
  module Qy
    module Message
      # text_send('appid', 'hello', touser: 'User1|User2')
      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
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wechat-api-0.4.3 lib/wechat/qy/message.rb
wechat-api-0.4.2 lib/wechat/qy/message.rb
wechat-api-0.4.1 lib/wechat/qy/message.rb
wechat-api-0.4.0 lib/wechat/qy/message.rb
wechat-api-0.3.0 lib/wechat/qy/message.rb
wechat-api-0.2.1 lib/wechat/qy/message.rb
wechat-api-0.2.0 lib/wechat/qy/message.rb