Sistemazioni...

This commit is contained in:
Paolo Arena
2020-07-11 17:10:19 +02:00
parent 2a3eaeb152
commit 61f42244d7
4 changed files with 14 additions and 9 deletions

View File

@@ -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 {