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
353 354 355 356 357 358 359 360 361 362 363 |
# File 'lib/matrix_sdk/protocols/cs.rb', line 353 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 |