lua-telegram-bot icon indicating copy to clipboard operation
lua-telegram-bot copied to clipboard

bot.Sendphoto

Open tomdaniels41 opened this issue 4 years ago • 1 comments

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")

tomdaniels41 avatar Jan 26 '21 13:01 tomdaniels41

Hey @tomdaniels41, I am not really maintaining this project anymore. If you create a Pull Request with a fix for this, I will merge it though.

ldb avatar Jan 26 '21 13:01 ldb