TwilioClientWrapper.SendMessageAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends a Twilio SMS message.
public virtual System.Threading.Tasks.Task<string> SendMessageAsync (Microsoft.Bot.Builder.Adapters.Twilio.TwilioMessageOptions messageOptions, System.Threading.CancellationToken cancellationToken);
abstract member SendMessageAsync : Microsoft.Bot.Builder.Adapters.Twilio.TwilioMessageOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.SendMessageAsync : Microsoft.Bot.Builder.Adapters.Twilio.TwilioMessageOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function SendMessageAsync (messageOptions As TwilioMessageOptions, cancellationToken As CancellationToken) As Task(Of String)
Parameters
- messageOptions
- TwilioMessageOptions
An object containing the parameters for the message to send.
- cancellationToken
- CancellationToken
A cancellation token for the task.
Returns
The SID of the Twilio message sent.