@@ -1 +1 @@
-export const version = "1.7.5";
+export const version = "1.7.7";
@@ -232,7 +232,7 @@ function compareType(value, type) {
correct = typeof value === type;
break;
case "bigInt":
- correct = bigInt.isInstance(value) || value === undefined;
+ correct = bigInt.isInstance(value) || typeof value==="bigint" || value === undefined;
case "true":
// true value is always correct
@@ -1,12 +1,12 @@
{
"name": "telegram",
- "version": "1.7.6",
+ "version": "1.7.7",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"license": "MIT",
"dependencies": {
"@cryptography/aes": "^0.1.1",
@@ -1,6 +1,6 @@
"description": "NodeJS MTProto API Telegram client library,",
"main": "index.js",
"types": "index.d.ts",