Nextcloud version : 31.0.2
(Docker)
Talk Server version : 21.0.1
Talkbot based on requests and fastApi
Hi,
I am just trying to work with nextcloud talkbot/spreed.
For the Api, that’s ok purpose, that’s ok. Everything work well.
Now, i would like to be able, with my bot, to
- download a file shared in the conversation,
- push a update of this file
- add a new file on the discussion
But all that things via the bot.
As you know, for the talk bot, we have to sign the “messages” with a shared secret(Between the bot and the server), some random key and the message it self.
This allow the bot to receive messages (and allow me to be sure that the message comes from nextcloud) and allow the bot to send messages too (and make the nextcloud server able to check the authenticity of the message)
This part works well with “simple”/“text” messages.
I am able, with the nc_py_api
, to download a shared file, but with a real user.
nc = nc_py_api.Nextcloud(nextcloud_url=url, nc_auth_user=user, nc_auth_pass=password)
### .... some code
nc.files.download(file.path) # This works
###
How can i do with the bot? Is it possible?
Thx, and cheers!