@japofc/baileys - v2.4.7
GitHub
npm
Preparing search index...
Japyea
Class Japyea
Index
Constructors
constructor
Properties
config
relay
Message
sock
wa
Upload
To
Server
Methods
detect
Type
handle
Album
handle
Carousel
handle
Event
handle
Group
Invite
handle
Group
Story
handle
Interactive
handle
Interactive
Buttons
handle
Payment
handle
Poll
Result
handle
Product
send
Status
Whats
App
Constructors
constructor
new
Japyea
(
waUploadToServer
:
any
,
relayMessageFn
:
any
,
config
:
any
,
sock
:
any
,
)
:
Japyea
Parameters
waUploadToServer
:
any
relayMessageFn
:
any
config
:
any
sock
:
any
Returns
Japyea
Properties
config
config
:
any
relay
Message
relayMessage
:
any
sock
sock
:
any
wa
Upload
To
Server
waUploadToServer
:
any
Methods
detect
Type
detectType
(
content
:
any
,
)
:
|
"PAYMENT"
|
"PRODUCT"
|
"GROUP_INVITE"
|
"INTERACTIVE_BUTTONS"
|
"CAROUSEL"
|
"INTERACTIVE"
|
"ALBUM"
|
"EVENT"
|
"POLL_RESULT"
|
"GROUP_STORY"
|
null
Parameters
content
:
any
Returns
|
"PAYMENT"
|
"PRODUCT"
|
"GROUP_INVITE"
|
"INTERACTIVE_BUTTONS"
|
"CAROUSEL"
|
"INTERACTIVE"
|
"ALBUM"
|
"EVENT"
|
"POLL_RESULT"
|
"GROUP_STORY"
|
null
handle
Album
handleAlbum
(
content
:
any
,
jid
:
any
,
quoted
:
any
)
:
Promise
<
any
>
Parameters
content
:
any
jid
:
any
quoted
:
any
Returns
Promise
<
any
>
handle
Carousel
handleCarousel
(
content
:
any
,
_jid
:
any
,
_quoted
:
any
,
)
:
Promise
<
{
viewOnceMessage
:
{
message
:
{
interactiveMessage
:
{
body
:
any
;
carouselMessage
:
{
cards
:
{
body
:
any
;
footer
:
any
;
header
:
{
hasMediaAttachment
:
boolean
;
title
:
any
}
;
}
[]
;
carouselCardType
:
any
;
messageVersion
:
any
;
}
;
footer
:
any
;
header
:
any
;
}
;
messageContextInfo
:
{
deviceListMetadata
:
{}
;
deviceListMetadataVersion
:
number
;
messageSecret
:
any
;
}
;
}
;
}
;
}
,
>
Parameters
content
:
any
_jid
:
any
_quoted
:
any
Returns
Promise
<
{
viewOnceMessage
:
{
message
:
{
interactiveMessage
:
{
body
:
any
;
carouselMessage
:
{
cards
:
{
body
:
any
;
footer
:
any
;
header
:
{
hasMediaAttachment
:
boolean
;
title
:
any
}
;
}
[]
;
carouselCardType
:
any
;
messageVersion
:
any
;
}
;
footer
:
any
;
header
:
any
;
}
;
messageContextInfo
:
{
deviceListMetadata
:
{}
;
deviceListMetadataVersion
:
number
;
messageSecret
:
any
;
}
;
}
;
}
;
}
,
>
handle
Event
handleEvent
(
content
:
any
,
jid
:
any
,
quoted
:
any
)
:
Promise
<
any
>
Parameters
content
:
any
jid
:
any
quoted
:
any
Returns
Promise
<
any
>
handle
Group
Invite
handleGroupInvite
(
content
:
any
,
jid
:
any
,
quoted
:
any
)
:
Promise
<
any
>
Parameters
content
:
any
jid
:
any
quoted
:
any
Returns
Promise
<
any
>
handle
Group
Story
handleGroupStory
(
content
:
any
,
jid
:
any
,
_quoted
:
any
,
options
?:
{}
,
)
:
Promise
<
any
>
Parameters
content
:
any
jid
:
any
_quoted
:
any
Optional
options
:
{}
Returns
Promise
<
any
>
handle
Interactive
handleInteractive
(
content
:
any
,
_jid
:
any
,
_quoted
:
any
,
)
:
Promise
<
{
interactiveMessage
:
{
body
:
{
text
:
any
}
;
footer
:
{
text
:
any
}
}
}
,
>
Parameters
content
:
any
_jid
:
any
_quoted
:
any
Returns
Promise
<
{
interactiveMessage
:
{
body
:
{
text
:
any
}
;
footer
:
{
text
:
any
}
}
}
>
handle
Interactive
Buttons
handleInteractiveButtons
(
content
:
any
,
_jid
:
any
,
_quoted
:
any
,
)
:
Promise
<
{
viewOnceMessage
:
{
message
:
{
interactiveMessage
:
{
body
:
{
text
:
any
}
;
footer
:
{
text
:
any
}
;
header
:
{
hasMediaAttachment
:
boolean
;
subtitle
:
any
;
title
:
any
}
;
nativeFlowMessage
:
{
buttons
:
any
}
;
}
;
messageContextInfo
:
{
deviceListMetadata
:
{}
;
deviceListMetadataVersion
:
number
;
messageSecret
:
any
;
}
;
}
;
}
;
}
,
>
Parameters
content
:
any
_jid
:
any
_quoted
:
any
Returns
Promise
<
{
viewOnceMessage
:
{
message
:
{
interactiveMessage
:
{
body
:
{
text
:
any
}
;
footer
:
{
text
:
any
}
;
header
:
{
hasMediaAttachment
:
boolean
;
subtitle
:
any
;
title
:
any
}
;
nativeFlowMessage
:
{
buttons
:
any
}
;
}
;
messageContextInfo
:
{
deviceListMetadata
:
{}
;
deviceListMetadataVersion
:
number
;
messageSecret
:
any
;
}
;
}
;
}
;
}
,
>
handle
Payment
handlePayment
(
content
:
any
,
quoted
:
any
,
)
:
Promise
<
{
requestPaymentMessage
:
any
}
>
Parameters
content
:
any
quoted
:
any
Returns
Promise
<
{
requestPaymentMessage
:
any
}
>
handle
Poll
Result
handlePollResult
(
content
:
any
,
jid
:
any
,
quoted
:
any
)
:
Promise
<
any
>
Parameters
content
:
any
jid
:
any
quoted
:
any
Returns
Promise
<
any
>
handle
Product
handleProduct
(
content
:
any
,
_jid
:
any
,
_quoted
:
any
,
)
:
Promise
<
{
viewOnceMessage
:
{
message
:
{
interactiveMessage
:
{
body
:
{
text
:
any
}
;
footer
:
{
text
:
any
}
;
header
:
{
hasMediaAttachment
:
boolean
;
productMessage
:
{
businessOwnerJid
:
string
;
product
:
{
currencyCode
:
any
;
description
:
any
;
priceAmount1000
:
any
;
productId
:
any
;
productImage
:
any
;
productImageCount
:
number
;
retailerId
:
any
;
title
:
any
;
url
:
any
;
}
;
}
;
title
:
any
;
}
;
nativeFlowMessage
:
{
buttons
:
any
}
;
}
;
}
;
}
;
}
,
>
Parameters
content
:
any
_jid
:
any
_quoted
:
any
Returns
Promise
<
{
viewOnceMessage
:
{
message
:
{
interactiveMessage
:
{
body
:
{
text
:
any
}
;
footer
:
{
text
:
any
}
;
header
:
{
hasMediaAttachment
:
boolean
;
productMessage
:
{
businessOwnerJid
:
string
;
product
:
{
currencyCode
:
any
;
description
:
any
;
priceAmount1000
:
any
;
productId
:
any
;
productImage
:
any
;
productImageCount
:
number
;
retailerId
:
any
;
title
:
any
;
url
:
any
;
}
;
}
;
title
:
any
;
}
;
nativeFlowMessage
:
{
buttons
:
any
}
;
}
;
}
;
}
;
}
,
>
send
Status
Whats
App
sendStatusWhatsApp
(
content
:
any
,
jids
?:
any
[]
)
:
Promise
<
any
>
Parameters
content
:
any
Optional
jids
:
any
[]
Returns
Promise
<
any
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
config
relay
Message
sock
wa
Upload
To
Server
Methods
detect
Type
handle
Album
handle
Carousel
handle
Event
handle
Group
Invite
handle
Group
Story
handle
Interactive
handle
Interactive
Buttons
handle
Payment
handle
Poll
Result
handle
Product
send
Status
Whats
App
GitHub
npm
@japofc/baileys - v2.4.7
Loading...