Module: Dingtalk::Api::Message

Included in:
Client
Defined in:
lib/dingtalk/api/message.rb

Instance Method Summary collapse

Instance Method Details



8
9
10
11
# File 'lib/dingtalk/api/message.rb', line 8

def send_link(to_users = [], agentid = nil, opts = {})
  # opts :messageUrl=>"",:picUrl=>"",:title=>"",:text=>""
  send_message(to_users, agentid, :msgtype => "link", :link => opts)
end

#send_oa(to_users = [], agentid = nil) ⇒ Object



13
14
15
# File 'lib/dingtalk/api/message.rb', line 13

def send_oa(to_users = [], agentid = nil)

end

#send_text(to_users = [], agentid = nil, message) ⇒ Object



4
5
6
# File 'lib/dingtalk/api/message.rb', line 4

def send_text(to_users = [], agentid = nil, message)
  send_message(to_users, agentid, :msgtype => "text", :text => { :content => message})
end