nest-whatsapp - v0.0.1
Preparing search index...
WhatsAppTypedMessageEvent
Interface WhatsAppTypedMessageEvent<T>
interface
WhatsAppTypedMessageEvent
<
T
extends
WhatsAppMessage
[
"type"
]
>
{
contact
?:
WhatsAppContact
;
message
:
|
Extract
<
WhatsAppMessageBase
&
{
text
:
WhatsAppText
;
type
:
TEXT
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
image
:
WhatsAppImage
;
type
:
IMAGE
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
audio
:
WhatsAppAudio
;
type
:
AUDIO
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
document
:
WhatsAppDocument
;
type
:
DOCUMENT
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
location
:
WhatsAppLocation
;
type
:
LOCATION
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
type
:
VIDEO
;
video
:
WhatsAppVideo
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
sticker
:
WhatsAppSticker
;
type
:
STICKER
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
template
:
{
language
?:
{
code
:
string
}
;
name
:
string
}
;
type
:
TEMPLATE
;
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
interactive
:
WhatsAppInteractive
;
type
:
INTERACTIVE
;
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
contacts
:
WhatsAppContactCard
[]
;
type
:
CONTACTS
;
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
system
:
WhatsAppSystemPayload
;
type
:
SYSTEM
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
order
:
WhatsAppOrder
;
type
:
ORDER
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
product
:
WhatsAppProduct
;
type
:
PRODUCT
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
reaction
:
WhatsAppReaction
;
type
:
REACTION
}
,
{
type
:
T
}
,
>
;
metadata
?:
WhatsAppMetadata
;
}
Type Parameters
T
extends
WhatsAppMessage
[
"type"
]
Hierarchy (
View Summary
)
BaseMessageEvent
WhatsAppTypedMessageEvent
Index
Properties
contact?
message
metadata?
Properties
Optional
contact
contact
?:
WhatsAppContact
message
message
:
|
Extract
<
WhatsAppMessageBase
&
{
text
:
WhatsAppText
;
type
:
TEXT
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
image
:
WhatsAppImage
;
type
:
IMAGE
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
audio
:
WhatsAppAudio
;
type
:
AUDIO
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
document
:
WhatsAppDocument
;
type
:
DOCUMENT
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
location
:
WhatsAppLocation
;
type
:
LOCATION
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
type
:
VIDEO
;
video
:
WhatsAppVideo
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
sticker
:
WhatsAppSticker
;
type
:
STICKER
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
template
:
{
language
?:
{
code
:
string
}
;
name
:
string
}
;
type
:
TEMPLATE
;
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
interactive
:
WhatsAppInteractive
;
type
:
INTERACTIVE
;
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
contacts
:
WhatsAppContactCard
[]
;
type
:
CONTACTS
;
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
system
:
WhatsAppSystemPayload
;
type
:
SYSTEM
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
order
:
WhatsAppOrder
;
type
:
ORDER
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
product
:
WhatsAppProduct
;
type
:
PRODUCT
}
,
{
type
:
T
}
,
>
|
Extract
<
WhatsAppMessageBase
&
{
reaction
:
WhatsAppReaction
;
type
:
REACTION
}
,
{
type
:
T
}
,
>
Optional
metadata
metadata
?:
WhatsAppMetadata
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
contact
message
metadata
nest-whatsapp - v0.0.1
Loading...