code: def send_file(self, url, name, **fileinfo):
          
  
          return self.client.api.send_content(
              self.room_id, url, name, "m.file",
              extra_information=fileinfo
          )
docs: Send a pre-uploaded file to the room.
  
          See http://matrix.org/docs/spec/r0.2.0/client_server.html#m-file for
          fileinfo.
  
          Args:
              url (str): The mxc url of the file.
              name (str): The filename of the image.
              fileinfo (): Extra information about the file