While the call to the sendMessage method was fairly straightforward, the documentation for uploading a file is sketchy, and possibly incomplete. I looked for information on forums or tried to make sense of the code, but without success.
What I understand is that
slingshot/uploadRequestmethod must be invoked.
- the response must be used to
- call the
But it is unclear which information from the response must be used in the sendFileMessage and how. In particular, when is the actual file information (the content) actually uploaded?
Could someone give a real-life example of these three messages, possibly with some explanation of the semantics, and how the fields should fit together?
For info, I am working on a python implementation based on python-meteor, taking the cue from python-rocketchat-bot. So far the bot can subscribe, receive messages, answer, and even download files (I had to use a normal https call, with cookies)