lib/chatrix/api/room_actions.rb
# Sends a message object to a room.
#
# @param room [String] The room to send to.
# @param content [Hash] The message content to send.
# @param type [String] The type of message to send.
# @return [String] The event ID of the sent message is returned.
# @see #send_message_type
# @see #send_message
# @see #send_emote
# @see #send_notice
# @see #send_html
Sends a message object to a room.
Sends a message object to a room .
def send_message_raw(room, content, type = 'm.room.message')
        make_request(
          :put,
          "/rooms/#{room}/send/#{type}/#{@transaction_id += 1}",
          content: content
        )['event_id']
      end
def send_message_raw ( room , content , type = 'm.room.message' ) make_request ( :put , "/rooms/#{room}/send/#{type}/#{@transaction_id += 1}" , content : content ) [ 'event_id' ] end
Sends a message object to a room.
Sends a message object to a room .
The event ID of the sent message is returned.
The event ID of the sent message is returned .
String
room
The room to send to.
The room to send to .
content
The message content to send.
The message content to send .
type
The type of message to send.
The type of message to send .
see
None
see
None
see
None
see
None
see
None