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

@@ -1194,6 +1194,7 @@ const MyTelegramBot = {
let ris = {
numrec: 0,
nummsgsent: 0,
text: '',
};
let invia = false;
@@ -1334,7 +1335,7 @@ async function local_sendMsgTelegram(idapp, username, text) {
const teleg_id = await User.TelegIdByUsername(idapp, username);
const cl = getclTelegByidapp(idapp);
let ris = null;
if (cl && teleg_id) {
if (cl && teleg_id > 0) {
ris = await cl.sendMsg(teleg_id, text);
}