haskell-telegram-api
haskell-telegram-api copied to clipboard
Bot doesn't send document, when use FileUploadBS or FileUploadLBS
trafficstars
Hello!
In constructor FileUpload,
when I use for the field fileUpload_content constructor
FileUploadFile FilePath - the bot successfully sends the file,
but when I use
FileUploadBS ByteString or FileUploadLBS ByteString - there is no response.
Maybe it's a bug. Or how to use this constructors?
Thanks!
I just observed the same thing, and get the following error from the server
FailureResponse (Request {requestPath = (BaseUrl {baseUrlScheme = Https, baseUrlHost = "api.telegram.org", baseUrlPort = 443, baseUrlPath = ""},"/bot…/sendPhoto"), requestQueryString = fromList [], requestBody = Nothing, requestAccept = fromList [application/json;charset=utf-8,application/json], requestHeaders = fromList [], requestHttpVersion = HTTP/1.1, requestMethod = "GET"}) (Response {responseStatusCode = Status {statusCode = 413, statusMessage = "Request Entity Too Large"}, responseHeaders = fromList [("Server","nginx/1.16.1"),("Date","Sat, 04 Apr 2020 09:41:55 GMT"),("Content-Type","application/json"),("Content-Length","70"),("Connection","close"),("Strict-Transport-Security","max-age=31536000; includeSubDomains; preload"),("Access-Control-Allow-Origin","*"),("Access-Control-Expose-Headers","Content-Length,Content-Type,Date,Server,Connection")], responseHttpVersion = HTTP/1.1, responseBody = "{\"ok\":false,\"error_code\":413,\"description\":\"Request Entity Too Large\"}"})