2de040027a
Adds native file upload support via Rocket.Chat REST API using the
rooms.media → chat.postMessage 2-step flow, replacing the base-class
fallback that showed '⚠️ Couldn't deliver the file attachment'.
Changes:
- RocketChatREST.upload_file(): multipart/form-data upload to
/api/v1/rooms.media/{room_id}, then chat.postMessage with
title_link + type=file attachment
- RocketChatAdapter.send_document(): resolves real room_id from
virtual chat_id (same logic as send()), delegates to
self.rest.upload_file(), falls back to super().send_document()
on any failure (auth, room resolution, upload error, exception)
Fixes: MEDIA:-prefix file delivery attempts that previously hit
the base-class fallback.