fix: include mimetype in document messages (#116)
This commit is contained in:
parent
9820a77f28
commit
6b7f96dd68
@ -272,6 +272,7 @@ class Whatsapp::Providers::WhatsappBaileysService < Whatsapp::Providers::BaseSer
|
|||||||
content[:ptt] = attachment.meta&.dig('is_recorded_audio')
|
content[:ptt] = attachment.meta&.dig('is_recorded_audio')
|
||||||
when 'file'
|
when 'file'
|
||||||
content[:document] = buffer
|
content[:document] = buffer
|
||||||
|
content[:mimetype] = attachment.file.content_type
|
||||||
when 'sticker'
|
when 'sticker'
|
||||||
content[:sticker] = buffer
|
content[:sticker] = buffer
|
||||||
when 'video'
|
when 'video'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user