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:
parent
eaf2f99520
commit
0b6d943faf
@ -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
|
||||
|
||||
@ -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
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user