Method: Lita::Robot#send_messages

Defined in:
lib/lita/robot.rb

#send_messages(target, *strings) ⇒ void Also known as: send_message

This method returns an undefined value.

Sends one or more messages to a user or room.

Parameters:

  • target (Lita::Source)

    The user or room to send to. If the Source has a room, it will choose the room. Otherwise, it will send to the user.

  • strings (String, Array<String>)

    One or more strings to send.



128
129
130
# File 'lib/lita/robot.rb', line 128

def send_messages(target, *strings)
  adapter.send_messages(target, strings.flatten)
end