Comparing version 1.1.1 to 1.1.2
@@ -11,3 +11,3 @@ const Escaped = { '<': '<', '>': '>', '&': '&' }; | ||
function isFormattedLike(object) { | ||
return object && ('text' in object) && ('entities' in object) && Array.isArray(object.entities); | ||
return object && (typeof object == 'object') && ('text' in object) && ('entities' in object) && Array.isArray(object.entities); | ||
} | ||
@@ -14,0 +14,0 @@ |
{ | ||
"name": "tg-format", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A tiny Node.JS helper for sending formatted text messages using Telegram Bot API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14971