LUA v5.1
I had an issue where i send a photo, some times i would just get a grey image box or it would fail with a response of {"ok":false,"error_code":400,"description":"Bad Request: IMAGE_PROCESS_FAILED"}
the fix was changing from
local photo_file = io.open(photo, "r")
to
local photo_file = io.open(photo, "rb")
LUA v5.1
I had an issue where i send a photo, some times i would just get a grey image box or it would fail with a response of {"ok":false,"error_code":400,"description":"Bad Request: IMAGE_PROCESS_FAILED"}
the fix was changing from
local photo_file = io.open(photo, "r")
to
local photo_file = io.open(photo, "rb")