fix: nil reference to metadata
This commit is contained in:
parent
312c35fe9a
commit
81d62d94f1
@ -99,7 +99,7 @@ class Whatsapp::Providers::WhatsappBaileysService < Whatsapp::Providers::BaseSer
|
||||
content[:image] = buffer
|
||||
when 'audio'
|
||||
content[:audio] = buffer
|
||||
content[:ptt] = attachment.meta['is_recorded_audio']
|
||||
content[:ptt] = attachment.meta&.dig('is_recorded_audio')
|
||||
when 'file'
|
||||
content[:document] = buffer
|
||||
when 'sticker'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user