Aggio App

This commit is contained in:
Surya Paolo
2022-12-09 03:09:08 +01:00
parent 6966bfe47b
commit f963321d44
3 changed files with 9 additions and 4 deletions

View File

@@ -1249,9 +1249,9 @@ router.post('/mgt', authenticate, async (req, res) => {
locale = req.body.locale;
try {
const {nummsgsent, numrec, textsent} = await telegrambot.sendMsgFromSiteToBotTelegram(idapp, req.user, mydata);
const {nummsgsent, numrec, textsent, text} = await telegrambot.sendMsgFromSiteToBotTelegram(idapp, req.user, mydata);
return res.send({numrec, nummsgsent, textsent});
return res.send({numrec, nummsgsent, textsent, text});
} catch (e) {
res.status(400).send();