Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "tgb", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "The best choice for your Telegram Bots", | ||
@@ -5,0 +5,0 @@ "homepage": "https://666.io", |
@@ -72,2 +72,3 @@ [![Codacy][cod_b]][cod_l] | ||
// > send: tg @gamebot /start x http://db.gg | ||
// https://core.telegram.org/bots/api#messageentity | ||
``` | ||
@@ -74,0 +75,0 @@ |
@@ -77,4 +77,2 @@ //----------------------------------------------------- | ||
console.log(cmdOptions); | ||
//----------------------------------------------------- | ||
@@ -81,0 +79,0 @@ |
@@ -36,8 +36,11 @@ //----------------------------------------------------- | ||
const {text} = message; | ||
const result = { | ||
toString() { return JSON.stringify(result); } | ||
}; | ||
const result = {}; | ||
//---------]> | ||
Object.defineProperty(result, "toString", { | ||
"enumerable": false, | ||
value() { return JSON.stringify(result); } | ||
}); | ||
entities.forEach(function({type, offset, length}) { | ||
@@ -48,3 +51,3 @@ const cmd = text.substring(offset, offset + length); | ||
result[type].push(cmd); | ||
}) | ||
}); | ||
@@ -51,0 +54,0 @@ //---------]> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59268
1568
290