This commit is contained in:
Surya Paolo
2022-12-02 13:31:57 +01:00
parent 196837ccbe
commit 6f14c41880
3 changed files with 28 additions and 2 deletions

View File

@@ -287,6 +287,8 @@ module.exports = {
try {
console.log('SendMsgToParam', params.typesend);
let textsent = '';
const telegrambot = require('../telegram/telegrambot');
if (params.typesend === 0)
@@ -391,6 +393,8 @@ module.exports = {
if (telegid > 0) {
risult = await telegrambot.local_sendMsgTelegramByIdTelegram(idapp, telegid, tools.getContentNotifByParams(params, mycontent, shared_consts.TypeSend.TELEGRAM));
await tools.snooze(50);
textsent = risult.text;
}
}
}
@@ -413,6 +417,7 @@ module.exports = {
return {
numrec,
nummsgsent,
textsent,
};
} catch (e) {
console.error('SendMsgToParam', e);