瀏覽代碼

GramJS : Fix small cast bug

painor 5 年之前
父節點
當前提交
ab2acac80f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)