Skip to content

Added validation logic for e164 #521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Added validation logic for e164 #521

merged 1 commit into from
Oct 31, 2024

Conversation

SecondeJK
Copy link
Contributor

@SecondeJK SecondeJK commented Oct 31, 2024

Not all message objects for the messages API use E164 validation.

Description

Facebook Messenger uses an ID. So, a new signature has been added to the interface for BaseMessage.
This is an internal change to validate something that would have triggered an error from the API anyway, and previously Messenger objects would not be sent. This is therefore not a breaking change but a bug fix.

Motivation and Context

Fixes #520

How Has This Been Tested?

The existing test suite needs to pass to show validation working when it needs to. Messenger test has been adjusted.

Example Output or Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@SecondeJK SecondeJK merged commit b1399d3 into main Oct 31, 2024
8 checks passed
@manchuck manchuck deleted the bug/e164-option branch April 22, 2025 17:32
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.

Sending Facebook Messenger throws an E164 number exception
1 participant