AdInteractionEvent represents an ad interaction event.
type AdInteractionEvent struct { BaseMessageEvent `json:",inline"` AdSource AdSource `json:"adSource"` Text string `json:"text"`}
func NewAdInteractionEvent
func NewAdInteractionEvent(baseMessageEvent BaseMessageEvent, adSource AdSource, text string) *AdInteractionEvent
NewAdInteractionEvent creates a new instance of AdInteractionEvent.
type AdInteractionSourceMediaType
AdInteractionSourceMediaType represents the media type of an ad interaction source.
type AdInteractionSourceMediaType string
const ( // AdInteractionSourceMediaTypeImage indicates that the ad interaction source is an image. AdInteractionSourceMediaTypeImage AdInteractionSourceMediaType = "image" // AdInteractionSourceMediaTypeVideo indicates that the ad interaction source is a video. AdInteractionSourceMediaTypeVideo AdInteractionSourceMediaType = "video")
type AdInteractionSourceType
AdInteractionSourceType represents the source type of an ad interaction.
type AdInteractionSourceType string
const ( // AdInteractionSourceTypePost indicates that the ad interaction is from a post. AdInteractionSourceTypePost AdInteractionSourceType = "post" // AdInteractionSourceTypeAd indicates that the ad interaction is from an ad. AdInteractionSourceTypeAd AdInteractionSourceType = "ad")
type AdSource
AdSource represents the source of an ad.
type AdSource struct { Url string `json:"url"` Id string `json:"id"` Type AdInteractionSourceType `json:"type"` Title string `json:"title"` Description string `json:"description"` MediaUrl string `json:"mediaUrl"` MediaType AdInteractionSourceMediaType `json:"mediaType"` ThumbnailUrl string `json:"thumbnailUrl"` CtwaClid string `json:"ctwaClid"`}
type AudioMessageEvent
AudioMessageEvent represents an event for an audio message.
type AudioMessageEvent struct { BaseMediaMessageEvent `json:",inline"` Audio components.AudioMessage `json:"audio"`}
type BaseMessageEventParams struct { BusinessAccountId string MessageId string PhoneNumber BusinessPhoneNumber Timestamp string From string // * whatsapp account id of the user who sent the message SenderName string IsForwarded bool Context MessageContext // * this context will not be present if in case a message is a reply to another message Requester request_client.RequestClient}
type BaseSystemEvent
type BaseSystemEvent struct { Timestamp string `json:"timestamp"`}
func (BaseSystemEvent) GetEventType
func (bme BaseSystemEvent) GetEventType() string
type BaseSystemEventInterface
type BaseSystemEventInterface interface { BaseEvent}
type BusinessCapabilityUpdateEvent
type BusinessCapabilityUpdateEvent struct { BaseBusinessAccountEvent MaxDailyConversationPerPhone int64 MaxPhoneNumbersPerBusiness int64}