mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add "getMessage" to example
This commit is contained in:
@@ -10,7 +10,13 @@ const startSock = () => {
|
||||
const sock = makeWASocket({
|
||||
logger: P({ level: 'trace' }),
|
||||
printQRInTerminal: true,
|
||||
auth: state
|
||||
auth: state,
|
||||
// implement to handle retries
|
||||
getMessage: async key => {
|
||||
return {
|
||||
conversation: 'hello'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const sendMessageWTyping = async(msg: AnyMessageContent, jid: string) => {
|
||||
|
||||
Reference in New Issue
Block a user