dcodeIO / long.js

A Long class for representing a 64-bit two's-complement integer value.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] this.isZero is not function

dxtstd opened this issue · comments

commented

i don't when i using a baileys and get this error

it turns out that the long.js module is the problem
Screenshot_2021-11-27-23-26-37-74_84d3000e3f4017145260f7618db1d683.jpg

I tried to fix it by adding the code above if (this.isZero())

if (typeof this.isZero != 'function')
    return '1';

and this work