fix(wa-cloud): send status read for typing indicator (#107)

* fix(wa-cloud): send status read for typing indicator

* test(wa-cloud): send status read for typing indicator
This commit is contained in:
Gabriel Jablonski 2025-09-03 13:36:20 -03:00 committed by GitHub
parent eaf2f99520
commit 0b6d943faf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -191,6 +191,7 @@ class Whatsapp::Providers::WhatsappCloudService < Whatsapp::Providers::BaseServi
body: {
messaging_product: 'whatsapp',
message_id: last_message.source_id,
status: 'read',
# NOTE: API currently only supports "typing", no "recording" status.
typing_indicator: { type: 'text' }
}.to_json

View File

@ -322,6 +322,7 @@ describe Whatsapp::Providers::WhatsappCloudService do
body: {
messaging_product: 'whatsapp',
message_id: message.source_id,
status: 'read',
typing_indicator: { type: 'text' }
}.to_json
)
@ -336,6 +337,7 @@ describe Whatsapp::Providers::WhatsappCloudService do
body: {
messaging_product: 'whatsapp',
message_id: message.source_id,
status: 'read',
typing_indicator: { type: 'text' }
}.to_json
)
@ -355,6 +357,7 @@ describe Whatsapp::Providers::WhatsappCloudService do
body: {
messaging_product: 'whatsapp',
message_id: message.source_id,
status: 'read',
typing_indicator: { type: 'text' }
}.to_json
)