Open artik008 opened 7 years ago
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\"}"})
Hello! In constructor
FileUpload
, when I use for the fieldfileUpload_content
constructorFileUploadFile FilePath
- the bot successfully sends the file, but when I useFileUploadBS ByteString
orFileUploadLBS ByteString
- there is no response. Maybe it's a bug. Or how to use this constructors? Thanks!