Table of Contents

Class WhatsAppCustomRequest

Namespace
Vonage.Messages.WhatsApp
Assembly
Vonage.dll

Represents a request to send a custom message on WhatsApp.

public class WhatsAppCustomRequest : WhatsAppMessageBase, IMessage
Inheritance
WhatsAppCustomRequest
Implements
Inherited Members

Properties

Channel

The channel to send to.

[JsonPropertyOrder(0)]
[JsonConverter(typeof(EnumDescriptionJsonConverter<MessagesChannel>))]
public override MessagesChannel Channel { get; }

Property Value

MessagesChannel

Custom

A custom payload, which is passed directly to WhatsApp for certain features such as templates and interactive messages.

[JsonPropertyOrder(9)]
public object Custom { get; set; }

Property Value

object

MessageType

The type of message to send.

[JsonPropertyOrder(1)]
[JsonConverter(typeof(EnumDescriptionJsonConverter<MessagesMessageType>))]
public override MessagesMessageType MessageType { get; }

Property Value

MessagesMessageType