fix: include mimetype in document messages (#116)

This commit is contained in:
Gabriel Jablonski 2025-09-30 22:38:13 -03:00 committed by GitHub
parent 9820a77f28
commit 6b7f96dd68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -272,6 +272,7 @@ class Whatsapp::Providers::WhatsappBaileysService < Whatsapp::Providers::BaseSer
content[:ptt] = attachment.meta&.dig('is_recorded_audio')
when 'file'
content[:document] = buffer
content[:mimetype] = attachment.file.content_type
when 'sticker'
content[:sticker] = buffer
when 'video'