Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bot.Sendphoto #28

Open
tomdaniels41 opened this issue Jan 26, 2021 · 1 comment
Open

bot.Sendphoto #28

tomdaniels41 opened this issue Jan 26, 2021 · 1 comment

Comments

@tomdaniels41
Copy link

tomdaniels41 commented Jan 26, 2021

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

@ldb
Copy link
Owner

ldb commented Jan 26, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants