def rooms_upload(self, rid, file, **kwargs):
files = {<EOL>'<STR_LIT:file>': (os.path.basename(file), open(file, '<STR_LIT:rb>'), mimetypes.guess_type(file)[<NUM_LIT:0>]),<EOL>}<EOL>return self.__call_api_post('<STR_LIT>' + rid, kwargs=kwargs, use_json=False, files=files)<EOL>
Post a message with attached file to a dedicated room.