lua-telegram-bot
lua-telegram-bot copied to clipboard
bot.Sendphoto
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")
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.