Skip to content

Typing Indicator Support#244

Merged
aalbarca merged 1 commit into
netflie:mainfrom
rafaelqueiroz:feature/typing-indicator
Mar 23, 2026
Merged

Typing Indicator Support#244
aalbarca merged 1 commit into
netflie:mainfrom
rafaelqueiroz:feature/typing-indicator

Conversation

@rafaelqueiroz

@rafaelqueiroz rafaelqueiroz commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add sendTypingIndicator() method to display a "typing..." status in the user's chat for up to 25 seconds or until a message is sent
  • Also marks the referenced message as read (per WhatsApp Cloud API behavior)
  • Includes unit test and README documentation

References

@rafaelqueiroz

Copy link
Copy Markdown
Contributor Author

@aalbarca take a look when you have a chance, thanks

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds first-class support for WhatsApp Cloud API “typing…” indicators to the SDK, exposed as a new WhatsAppCloudApi::sendTypingIndicator() convenience method alongside existing message/read operations.

Changes:

  • Introduces sendTypingIndicator(string $message_id): Response on WhatsAppCloudApi.
  • Adds TypingIndicatorRequest (POST to /{from_phone_number_id}/messages with status=read + typing_indicator payload).
  • Adds a unit test and documents usage + capability list update in the README.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/Unit/WhatsAppCloudApiTest.php Adds unit coverage asserting the expected request payload/URL for typing indicators.
src/WhatsAppCloudApi.php Exposes the new sendTypingIndicator() API method wired through the existing client request pipeline.
src/Request/TypingIndicatorRequest.php Implements the request body/node path for the typing indicator endpoint behavior.
README.md Documents the new method and lists it in supported features.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aalbarca aalbarca merged commit c618fe9 into netflie:main Mar 23, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants