Sistemazioni...
This commit is contained in:
@@ -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 ||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user