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

Issue with Asterisks Formatting When Sending Messages via BAILEYS API #1972

Closed
guiiicd opened this issue Jan 23, 2025 · 1 comment
Closed

Comments

@guiiicd
Copy link

guiiicd commented Jan 23, 2025


Describe the bug

When sending a payment code via WhatsApp using the BAILEYS API through Typebot, the message formatting alters the content. The API returns a Pix payment code containing three consecutive asterisks (***), but when sent via WhatsApp, it only displays a single asterisk (*). This happens because WhatsApp interprets two asterisks as bold formatting, removing them from the displayed text.


To Reproduce

Steps to reproduce the behavior:

  1. Make an HTTP request to an API that returns a Pix payment code.
  2. Store the response in a variable within Typebot.
  3. Send this variable as a WhatsApp message using the BAILEYS API.
  4. The received message in WhatsApp will incorrectly display only one asterisk instead of three.

Example:

  • Correct code returned by the API:

    00020126850014br.gov.bcb.pix2563pix.payment.com/qr/v3/at/a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p65204000053039865802BR5915PAYMENT_SYSTEM6007SAO PAULO62070503***63047BB3
    
  • Code received on WhatsApp (incorrect formatting):

    00020126850014br.gov.bcb.pix2563pix.payment.com/qr/v3/at/a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p65204000053039865802BR5915PAYMENT_SYSTEM6007SAO PAULO62070503*6304F415
    

Expected behavior

The WhatsApp message should display the payment code exactly as it was returned by the API, including all three asterisks (***) without interpreting them as formatting characters.


Screen recording

(If possible, attach a screen recording or screenshot showing the incorrect formatting in WhatsApp.)


Additional Information

I have tried escaping the asterisks using \* or different string formats, but nothing seems to work. Is there a way to ensure the message is sent exactly as it appears in the API response without triggering WhatsApp's text formatting?

@baptisteArno
Copy link
Owner

We don't support Bailey's

@baptisteArno baptisteArno closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2025
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