Method: MatrixSdk::Protocols::CS#send_message
- Defined in:
- lib/matrix_sdk/protocols/cs.rb
#send_message(room_id, message, **params) ⇒ Response
Send a plaintext message to a room
414 415 416 417 418 419 420 |
# File 'lib/matrix_sdk/protocols/cs.rb', line 414 def (room_id, , **params) content = { msgtype: params.delete(:msg_type) { 'm.text' }, body: } (room_id, 'm.room.message', content, params) end |