diff --git a/docs/note.txt b/docs/note.txt deleted file mode 100644 index dbea10b..0000000 --- a/docs/note.txt +++ /dev/null @@ -1 +0,0 @@ -TiziCaso 6 IDTELEG 989199479 diff --git a/documentation/passi.txt b/documentation/passi.txt index 9b4c8c8..429b72a 100644 --- a/documentation/passi.txt +++ b/documentation/passi.txt @@ -7,6 +7,14 @@ // ++Todo: PRIORITA' ALTA: +- Errore durante la sostituzione... + +- far pagare direttamente al Sognatore. +- Il dono al Fondo, fallo fare a prescindere (non al 57¨ dono). + +- Se sostituisco mi da sempre la stessa persona. + + - Togliere i Video e il Sogno. (5 requisiti) - Cestino di ELIMINA non funziona !! @@ -17,11 +25,7 @@ - 7.64 : NATALINA NON HA LA RITESSITURA !! - -- 1403 : Kukovič - ha tutto disattivato, mentre non è vero. -- 1344: Piera La Porta - ha tutto attivo invece non ha niente... + - Controllare che ci sono registrazioni doppie !! (stesso username e stessa email!) - SubAccount: filtro. diff --git a/src/server/router/index_router.js b/src/server/router/index_router.js index 2bd7edf..c760cb2 100755 --- a/src/server/router/index_router.js +++ b/src/server/router/index_router.js @@ -694,6 +694,8 @@ router.patch('/callfunz', authenticate, async (req, res) => { const idapp = req.body.idapp; const mydata = req.body.data; + const telegrambot = require('../telegram/telegrambot'); + try { let entra = false; if (mydata.myfunc === shared_consts.CallFunz.AGGIUNGI_NUOVO_IMBARCO || diff --git a/src/server/telegram/telegrambot.js b/src/server/telegram/telegrambot.js index 4d621c4..86ef408 100755 --- a/src/server/telegram/telegrambot.js +++ b/src/server/telegram/telegrambot.js @@ -2418,9 +2418,9 @@ class Telegram { async sendMsg(id, text, menu, form, msg_id, chat_id, ripr_menuPrec) { - if (text.length > 4096) { - let text1 = text.slice(0, 4096); - let text2 = text.slice(4096, text.length); + if (text.length > 4090) { + let text1 = text.slice(0, 4090); + let text2 = text.slice(4090, text.length); await this._inviaMsg(id, text1, form, menu, msg_id, chat_id, ripr_menuPrec); return await this._inviaMsg(id, text2, form, menu, msg_id, chat_id, ripr_menuPrec); } else {