mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-17 19:26:23 +00:00
19 lines
377 B
JavaScript
19 lines
377 B
JavaScript
const { generateRef } = require('../../utils/hash')
|
|
/**
|
|
*
|
|
* @param answer string
|
|
* @param options {media:string, buttons:[], capture:true default false}
|
|
* @returns
|
|
*/
|
|
const validateCtx = ({ body, from }) => {
|
|
return {
|
|
ref: generateRef(),
|
|
keyword: null,
|
|
answer: body,
|
|
options: {},
|
|
from,
|
|
}
|
|
}
|
|
|
|
module.exports = { validateCtx }
|