Client.upload_media documentation is confusing
nex3 opened this issue · 1 comments
nex3 commented
The API documentation for Client.upload_media
doesn't indicate the parameter type for the file
parameter. This is especially troublesome since it needs to be the special HTTP::FormData::File
type or the request will fail in mysterious ways.
muffinista commented
FYI, I cleaned this up a bit in a04f8aa. upload_media
will take a File
, StringIO
or HTTP::FormData::File
now and the docs should be doing a better job of explaining that.