You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
could be used in this API
this code send message You could use in this API the idea that when writing a message in the JSON that I send the word :smile is put; and pogana it in the message:
`export async function sendMessage(req: Request, res: any) {
const { phone, message } = req.body;
const options = req.body.options || {};
try {
const results: any = [];
for (const contato of phone) {
results.push(await req.client.sendText(contato, message, options));
}
could be used in this API
this code send message You could use in this API the idea that when writing a message in the JSON that I send the word :smile is put; and pogana it in the message:
`export async function sendMessage(req: Request, res: any) {
const { phone, message } = req.body;
const options = req.body.options || {};
try {
const results: any = [];
for (const contato of phone) {
results.push(await req.client.sendText(contato, message, options));
}
} catch (error) {
returnError(req, res, error);
}
}`
The text was updated successfully, but these errors were encountered: