Skip to content
Advertisement

upload file with slackclient 2.x

I’m upgrading from slackclient 1.3.1 to 2.9.3 using this guide.

before I had this function:

JavaScript

which I tried to migrate to:

JavaScript

the function is called with something like this:

JavaScript

However, I get:

Object of type ‘BufferedReader’ is not JSON serializable

I am guessing it is related to the way I pass the file parameter. How should I be doing it?

Advertisement

Answer

Solved, the parameters were wrong:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement