Explorar o código

GramJS : Fix small cast bug

painor %!s(int64=5) %!d(string=hai) anos
pai
achega
ab2acac80f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lib/gramjs/Helpers.js

+ 1 - 1
src/lib/gramjs/Helpers.js

@@ -31,7 +31,7 @@ function readBigIntFromBuffer(buffer, little = true, signed = false) {
  * @returns {Buffer}
  */
 function readBufferFromBigInt(bigInt, bytesNumber, little = true, signed = false) {
-    console.log("will read ", BigInt)
+    bigInt = BigInt(bigInt)
     const bitLength = bigInt.bitLength()
 
     const bytes = Math.ceil(bitLength / 8)