You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked and am using the latest version of the library.
What type of session are you experiencing this issue on?
Legacy (Normal)
What type of host account are you experiencing this issue on?
Personal account (normal)
Mode
EASY API/CLI
Current Behavior
Using the command sendImage, even if it has a caption, the image sent to WhatsApp is always without a caption
Expected Behavior
No response
Steps To Reproduce
execute bot
use sendImage
get the result
create() code OR full CLI command + CONFIG
def enviar_para_whatsapp(content, caption=None, image_url=None):
to = f'{GRUPO_WHATSAPP_DESTINO}'
try:
if image_url:
# Se for uma imagem, envie
normalized_caption = unidecode.unidecode(caption) if caption else None
whatsapp_client.sendImage(to, image_url, 'photo.jpg', caption=normalized_caption)
else:
# Se for apenas texto, envie
whatsapp_client.sendText(to, content)
except Exception as e:
logging.error(f"Erro ao enviar mensagem para o WhatsApp: {e}", exc_info=True)
Are you using the latest version of the library?
What type of session are you experiencing this issue on?
Legacy (Normal)
What type of host account are you experiencing this issue on?
Personal account (normal)
Mode
EASY API/CLI
Current Behavior
Using the command sendImage, even if it has a caption, the image sent to WhatsApp is always without a caption
Expected Behavior
No response
Steps To Reproduce
create() code OR full CLI command + CONFIG
DEBUG INFO
Environment
Screenshots/Logs
Anything else?
No response
The text was updated successfully, but these errors were encountered: