Skip to content

[Bug] mentionAll and special character encoding broken when sending media via multipart/form-data #2

@ruben18salazar3

Description

@ruben18salazar3

Welcome!

  • Yes, I have searched for similar issues on GitHub and found none.

What did you do?

Sent a POST request to /send/media using multipart/form-data with a binary file (not a URL), including the mentionAll field and a caption containing accented characters (e.g. Acá para vcs).

What did you expect?

  1. The ghost mention (@everyone) to be applied to the group message.
  2. The caption to arrive with the original characters preserved (e.g. Acá para vcs).

What did you observe instead of what you expected?

  1. No members were mentioned — the media was delivered normally but without the ghost mention, even with mentionAll set to true.
  2. Accented characters in the caption arrived corrupted (e.g. Ac▯ para vcs).

Both issues only occur when using multipart/form-data (binary upload). When using JSON body with url, the behavior is correct.

Screenshots/Videos

N/A

Which version are you using?

0.6.1

What is your environment?

Docker

If applicable, paste the log output

No response

Additional Notes

The root cause has not been confirmed, but it may be related to:

  • mentionAll being parsed as a string instead of a boolean in the multipart body
  • The multipart body not being handled as UTF-8, which would explain the character corruption

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions