Skip to content

[BUG] Await upload_media with AsyncWhatsApp throws error #59

Description

@nutax

document = await app.upload_media(f"./sample.pdf")

ERROR: Only io.IOBase, multidict and (name, file) pairs allowed, use .add_field() for passing more complex parameters, got <MultipartEncoder: {'file': ('./sample.pdf', <_io.BufferedReader name='/sample.pdf'>, 'application/pdf'), 'messaging_product': 'whatsapp', 'type': 'application/pdf'}>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions