@japofc/baileys - v2.4.7
GitHub
npm
Preparing search index...
MessageScheduler
Class MessageScheduler
Index
Constructors
constructor
Methods
cancel
cancel
For
Jid
clear
All
get
get
Pending
schedule
schedule
Delay
start
stop
Constructors
constructor
new
MessageScheduler
(
sendMessage
:
(
jid
:
string
,
content
:
AnyMessageContent
)
=>
Promise
<
any
>
,
options
?:
SchedulerOptions
,
)
:
MessageScheduler
Parameters
sendMessage
:
(
jid
:
string
,
content
:
AnyMessageContent
)
=>
Promise
<
any
>
Optional
options
:
SchedulerOptions
Returns
MessageScheduler
Methods
cancel
cancel
(
id
:
string
)
:
boolean
Parameters
id
:
string
Returns
boolean
cancel
For
Jid
cancelForJid
(
jid
:
string
)
:
number
Parameters
jid
:
string
Returns
number
clear
All
clearAll
()
:
number
Returns
number
get
get
(
id
:
string
)
:
ScheduledMessage
|
undefined
Parameters
id
:
string
Returns
ScheduledMessage
|
undefined
get
Pending
getPending
()
:
ScheduledMessage
[]
Returns
ScheduledMessage
[]
schedule
schedule
(
jid
:
string
,
content
:
AnyMessageContent
,
scheduledTime
:
Date
,
repeatOptions
?:
RepeatOptions
,
)
:
ScheduledMessage
Parameters
jid
:
string
content
:
AnyMessageContent
scheduledTime
:
Date
Optional
repeatOptions
:
RepeatOptions
Returns
ScheduledMessage
schedule
Delay
scheduleDelay
(
jid
:
string
,
content
:
AnyMessageContent
,
delayMs
:
number
,
repeatOptions
?:
RepeatOptions
,
)
:
ScheduledMessage
Parameters
jid
:
string
content
:
AnyMessageContent
delayMs
:
number
Optional
repeatOptions
:
RepeatOptions
Returns
ScheduledMessage
start
start
()
:
void
Returns
void
stop
stop
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
cancel
cancel
For
Jid
clear
All
get
get
Pending
schedule
schedule
Delay
start
stop
GitHub
npm
@japofc/baileys - v2.4.7
Loading...