Method: MatrixSdk::Protocols::CS#send_content
- Defined in:
- lib/matrix_sdk/protocols/cs.rb
#send_content(room_id, url, name, msg_type, **params) ⇒ Response
Send a content message to a room
578 579 580 581 582 583 584 585 586 587 588 |
# File 'lib/matrix_sdk/protocols/cs.rb', line 578 def send_content(room_id, url, name, msg_type, **params) content = { url: url, msgtype: msg_type, body: name, info: params.delete(:extra_information) { {} } } content.merge!(params.fetch(:extra_content)) if params.key? :extra_content (room_id, 'm.room.message', content, params) end |