messages.forwardMessages error: TypeError: Cannot read properties of undefined (reading 'length')
at Counter.vector (D:\mtproto\node_modules\@mtproto\core\src\tl\counter\index.js:93:31)
at Counter.messages.forwardMessages (D:\mtproto\node_modules\@mtproto\core\src\tl\builder\index.js:6104:10)
at Counter.predicate (D:\mtproto\node_modules\@mtproto\core\src\tl\counter\index.js:101:8)
at Counter.initConnection (D:\mtproto\node_modules\@mtproto\core\src\tl\builder\index.js:6306:10)
at Counter.predicate (D:\mtproto\node_modules\@mtproto\core\src\tl\counter\index.js:101:8)
at Counter.invokeWithLayer (D:\mtproto\node_modules\@mtproto\core\src\tl\builder\index.js:6351:10)
at new Counter (D:\mtproto\node_modules\@mtproto\core\src\tl\counter\index.js:7:8)
at new Serializer (D:\mtproto\node_modules\@mtproto\core\src\tl\serializer\index.js:7:21)
at RPC.call (D:\mtproto\node_modules\@mtproto\core\src\rpc\index.js:591:24)
at Object.call (D:\mtproto\node_modules\@mtproto\core\src\index.js:106:32)
D:\mtproto\node_modules\@mtproto\core\src\tl\counter\index.js:93
for (let i = 0; i < value.length; i++) {
Here is the sample code
and then get this result