Method: MatrixSdk::Room#send_file
- Defined in:
- lib/matrix_sdk/room.rb
#send_file(url, name, file_info = {}) ⇒ Object
Note:
The URLs should all be of the ‘mxc://’ schema
Sends a link to a generic file to the room
251 252 253 |
# File 'lib/matrix_sdk/room.rb', line 251 def send_file(url, name, file_info = {}) client.api.send_content(id, url, name, 'm.file', extra_information: file_info) end |