ProtectedProviderReturns the name of this provider for use in error messages. Override in subclasses to provide a more descriptive name.
Archives a message. Override in subclasses that support this operation.
Parameters for archiving the message
Optionalcredentials: ProviderCredentialsBaseOptional credentials override for this request
Promise
Twilio does not support creating draft messages
Parameters for creating a draft (not used)
Optionalcredentials: TwilioCredentialsOptional credentials (not used for Twilio)
Deletes a message. Override in subclasses that support this operation.
Parameters for deleting the message
Optionalcredentials: ProviderCredentialsBaseOptional credentials override for this request
Promise
Downloads an attachment from a message. Override in subclasses that support this operation.
Parameters for downloading the attachment
Optionalcredentials: ProviderCredentialsBaseOptional credentials override for this request
Promise
Forward a message using Twilio Note: Twilio doesn't have a native "forward" concept, so we implement it as a new message that includes the content of the original message
Parameters for forwarding a message
Optionalcredentials: TwilioCredentialsOptional credentials override for this request.
If not provided, uses environment variables.
Set credentials.disableEnvironmentFallback = true to require explicit credentials.
Gets messages from Twilio
Parameters for fetching messages
Optionalcredentials: TwilioCredentialsOptional credentials override for this request.
If not provided, uses environment variables.
Set credentials.disableEnvironmentFallback = true to require explicit credentials.
Gets a single message by ID. Override in subclasses that support this operation.
Parameters for retrieving the message
Optionalcredentials: ProviderCredentialsBaseOptional credentials override for this request
Promise
Returns the list of operations supported by the Twilio provider. Twilio is a messaging provider (SMS, WhatsApp, Messenger) and does not support mailbox operations like folders, archiving, or attachments.
Lists attachments on a message. Override in subclasses that support this operation.
Parameters for listing attachments
Optionalcredentials: ProviderCredentialsBaseOptional credentials override for this request
Promise
Lists folders/mailboxes available in the provider. Override in subclasses that support this operation.
Parameters for listing folders
Optionalcredentials: ProviderCredentialsBaseOptional credentials override for this request
Promise
Marks message(s) as read or unread. Override in subclasses that support this operation.
Parameters for marking messages
Optionalcredentials: ProviderCredentialsBaseOptional credentials override for this request
Promise
Moves a message to a different folder. Override in subclasses that support this operation.
Parameters for moving the message
Optionalcredentials: ProviderCredentialsBaseOptional credentials override for this request
Promise
Reply to a message using Twilio
Parameters for replying to a message
Optionalcredentials: TwilioCredentialsOptional credentials override for this request.
If not provided, uses environment variables.
Set credentials.disableEnvironmentFallback = true to require explicit credentials.
Searches messages using a query string. Override in subclasses that support this operation.
Parameters for searching messages
Optionalcredentials: ProviderCredentialsBaseOptional credentials override for this request
Promise
Sends a single message using Twilio
The message to send
Optionalcredentials: TwilioCredentialsOptional credentials override for this request.
If not provided, uses environment variables.
Set credentials.disableEnvironmentFallback = true to require explicit credentials.
Checks if this provider supports a specific operation.
The operation to check
true if the operation is supported
Implementation of the Twilio provider for sending and receiving messages (SMS, WhatsApp, Facebook Messenger)