Skip to content

bot.Sendphoto #28

@tomdaniels41

Description

@tomdaniels41

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions