Module: Viberroo::Message

Included in:
Bot
Defined in:
lib/message.rb

Instance Method Summary collapse

Instance Method Details

#send_location(params = {}) ⇒ Object



16
17
18
19
20
21
# File 'lib/message.rb', line 16

def send_location(params = {})
  dispatch({
    type: :location,
    min_api_version: 3
  }.merge(params))
end

#send_message(params = {}) ⇒ Object



3
4
5
6
7
# File 'lib/message.rb', line 3

def send_message(params = {})
  dispatch({
    type: :text
  }.merge(params))
end

#send_rich_media(params = {}) ⇒ Object



9
10
11
12
13
14
# File 'lib/message.rb', line 9

def send_rich_media(params = {})
  dispatch({
    type: :rich_media,
    min_api_version: 2
  }.merge(params))
end